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

+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

4/9/2017 11:19:05 AM

Muhammad Hidayat

2 Answers

New Answer

+1

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

+1

use cin>>text