I want grab a string with whitespace and I try many thing... I work in vc++ console mode...
string adress;
getline(cin, adress);
or
getline(cin, adress, '\n');
or
cin >> noskipws >> adress;
the first and the second work but I have to press two time the 'Enter' key to continue and the third skip the whitespace???
Have you an idea? thanks
Fred
string adress;
getline(cin, adress);
or
getline(cin, adress, '\n');
or
cin >> noskipws >> adress;
the first and the second work but I have to press two time the 'Enter' key to continue and the third skip the whitespace???
Have you an idea? thanks
Fred