¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita+ 3
String with space bar
If I enter blank at the input then the string is invalid. https://code.sololearn.com/c9JkXUv68Fs6/#cpp
2 Respuestas
+ 3
use getline() instead of cin
+ 2
you can use getline function
getline(cin,var);