Search:
Type: Posts; User: tomy12
Search:
Search took 0.02 seconds.
-
March 30th, 2021, 12:44 AM
@VictorN: Isn't it because of your using std::hex by outputting?
I agree, but when commenting it the output contains only numbers this time. :|
@2Kaud: What are expecting the output file to...
-
March 28th, 2021, 03:46 AM
Here's my TEA algorithm that I like to use for dealing with texts that humans can understand, i.e., English characters.
#include <iostream>
#include <string>
#include <fstream>
#include...
-
January 22nd, 2021, 09:28 AM
Is the window called Autos in the screenshot below where I ought to focus on and should I then expand the elements, e.g., d, d.line. is, here, for more concentration? I mean is it the proper method...
-
January 22nd, 2021, 08:21 AM
And by using the debugger the intention is to run and follow the control in the code by F10 & F11 in VS, right?
I'm sorry that I can't give you a Rate! That system gives me a message to spread...
-
January 22nd, 2021, 08:06 AM
Ow ****, ln->begin() equals lines.begin()->begin() that is, it pointes to the first element (char) of the vector, and ln->end() points to one beyond the last element in the current vector not the...
-
January 21st, 2021, 03:55 PM
Hi all,
Here's a code using a list of vectors to read a text terminated by ctrl+z and then print it all in the same order. The problem is that I don't know why is the function Text_iterator&...
-
January 19th, 2021, 05:20 AM
Ah, **** it! Three thousand lines of code for a vector!? :(
-
January 19th, 2021, 01:57 AM
@2kaud
You're using Visual Studio 2019 compiler just like me. I want to find the source code of STL libraries inside it so that I can explore them at times I need but whatever I search I'm not...
-
January 17th, 2021, 11:44 AM
Thank you very much for your help.
-
January 16th, 2021, 01:28 PM
2 questions:
1) Why did you change:
myVec(const int&); // Ordinary constructor
myVec(initializer_list<T>); // Initializer list constructor
to
-
January 16th, 2021, 12:51 PM
@VictoeN
I recalled that method and using F10 and F11 tried to go through the code step by step to find the line containing the error but yet nothing except for the message above. I run my program...
-
January 16th, 2021, 12:04 PM
I run my programs in Debug mode using VS 2019 with C++ 17 enabled.
I added #include <initializer_list> but still get the run-time error message which is saying: HEAP CORRUPTION DETECTED, but I don't...
-
January 16th, 2021, 10:59 AM
Hi all,
Here is the first version of my vector. It crashes and presumably the reason is the initializer list constructor, but I've used the version written in the Programming Principles and...
-
April 15th, 2020, 05:32 AM
If we still consider v.push_back(A(25)); only, in the move constructor, we have:
// Move constructor.
A(A&& other) : mData(nullptr), mLength(0)
What are those mData and mLength which are...
-
April 14th, 2020, 11:43 AM
When I use main() this way:
vector<A> v;
v.push_back(A(25));
// v.push_back(A(75));
// Insert a new element into the second position of the vector.
// v.insert(v.begin()...
-
April 14th, 2020, 05:11 AM
When I run the code by F10 on VS 2019, I see that all of the following three A's member functions are called when v.push_back(A(25)); is done:
1) constructor, on line 7
2) move constructor on...
-
April 13th, 2020, 12:47 PM
Thanks so much dear 2Kaud for your nice explanation. :)
I tested the first push: v.push_back(A(25));. On this line, firstly the class's constructor is called, for the temp object, and then the...
-
April 13th, 2020, 08:56 AM
Hi all,
I'm trying to study rvalue reference and move semantics using this tut. In the How it works section of that page, it says: Both push_back() calls resolve as push_back(T&&) because their...
-
February 23rd, 2019, 05:30 PM
Hi,
consider here we press an alphabetical character, how to simply ignore that and get the look to work until end, please?
int main()
{
vector<int> v;
int n = 15, m;
-
January 22nd, 2019, 10:46 AM
Hello all,
It's days I'm dealing with this question and haven't reached a conclusion to make a decision and start learning socket programming.
I know C++ to a some extent and it's very exciting...
-
December 14th, 2017, 07:48 AM
Hi all,
Please consider this snipped-code:
int main()
{
cout << int() << endl;
return 0;
}
-
December 3rd, 2017, 02:01 AM
-
December 2nd, 2017, 12:29 AM
The return type of the function is something vague for me, typename iterator_traits<InputIterator> :: difference_type, but what I've returned is of integer (i).
-
December 1st, 2017, 03:11 AM
I changed the whole code to this:
#include <C:\Users\Abbasi\Desktop\std_lib_facilities_4.h>
using namespace std;
template<typename InputIterator, typename Type>
typename...
-
December 1st, 2017, 02:55 AM
trains was a mistake in place of the right choice traits!
It's the content of that header file.
Now the errors are different:
1- Severity Code Description Project File Line Suppression...
|
Click Here to Expand Forum to Full Width
|