+3
If I enter blank at the input then the string is invalid. https://code.sololearn.com/c9JkXUv68Fs6/#cpp
5/19/2018 12:48:38 PM
2 Answers
use getline() instead of cin
+2
you can use getline function getline(cin,var);
Send us a message