0
Why does this stop at spaces?
https://code.sololearn.com/c4ijn3MBIiP6/?ref=app Input anything with a space and it will stop once it encounters the space. Why?
4 Respuestas
+ 3
In line 7, use getline(cin, str);
Then you can read a whole line, including spaces.
Hope that helps :)
+ 1
Replace that line completely 😊
+ 1
Ah. I get it. Thanks!
0
Where in line 7? Replace cin, or after it?