Help please. Why is my Code only able to transfer one word? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help please. Why is my Code only able to transfer one word?

https://code.sololearn.com/cG33129VVd8m/?ref=app

1st Mar 2020, 10:41 AM
Ragnar Mxyzptlk
Ragnar Mxyzptlk - avatar
3 Answers
+ 1
cin accept only one word. Use getline method as getline(cin, hidden) ;
1st Mar 2020, 12:30 PM
Jayakrishna 🇮🇳
0
Thanks a lot! Mission completed^^
1st Mar 2020, 4:45 PM
Ragnar Mxyzptlk
Ragnar Mxyzptlk - avatar
0
No need to use std:: when you have using namespace std;
10th May 2020, 2:57 AM
Epsilon ︻╦̵̵͇̿̿̿̿╤──
Epsilon ︻╦̵̵͇̿̿̿̿╤── - avatar