You can read the whole line with std::getline( std::cin, string_variable );
In a console application, can I use cin to input character strings with space characters in them?
Joseph Klasen
146
Reputation points
I have a novice question which didn't appear in the Q&A listing. In a console application, can I use CIN to input character strings that have space characters in them?
Developer technologies C++
3,971 questions
Accepted answer
-
didier bagarry 160 Reputation points
2023-06-21T22:26:49.4433333+00:00