Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
If cin breaks on space meaning that it will return the first word. What should i use to enter whole string with many spaces?
2 Respostas
+ 7
try
getline(cin,variable);
+ 7
Here is an example
https://code.sololearn.com/cp32oQ9205NP/?ref=app