+ 1
Doesn't output a thing (C++)
In the following code, I tried to make an input (a sentence) and it said, "No output." How on earth is that possible? Which input method should I use? I tried cin, but only gave out only the first word. Tried getline, no output. Can anyone help? Here's the code: https://code.sololearn.com/cl527E31mxm2/?ref=app
2 Answers
+ 1
Because your program crashes at line 36.
Use temp += c; to add a character instead.
+ 1
use cin>>text