Hi,
I've problem with the Standard Library's getline function.
As I know, it requires 3 params:
1. an input stream
2. a string objet
3. a const char
...
std::getline( cin, mystring, '\n');
...
I t doesn't work at me. When I run my code and I debug this line, after I stepped over mystring object is still empty.
What is wrong?
thanks,
Kirilla
I've problem with the Standard Library's getline function.
As I know, it requires 3 params:
1. an input stream
2. a string objet
3. a const char
...
std::getline( cin, mystring, '\n');
...
I t doesn't work at me. When I run my code and I debug this line, after I stepped over mystring object is still empty.
What is wrong?
thanks,
Kirilla