+ 7
C++ string and cin problem.
When using a full name like "John Doe" it output bad resul. https://code.sololearn.com/cVJOpch5ZfLx/?ref=app
4 Answers
+ 4
Use getline(cin, string);
+ 4
Fully done! Thank you so much.
+ 3
Yeah it's done, but it doesn't ask for age.
+ 2
It is because of sololearn. You need to enter your inputs like this when it asks,
John Doe
10