Doesn't output a thing (C++) | Sololearn: Learn to code for FREE!


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:

4/9/2017 11:19:05 AM

Muhammad Hidayat

2 Answers

New Answer


Because your program crashes at line 36. Use temp += c; to add a character instead.


use cin>>text