Include space in string | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Include space in string

Why the getline() skip when I run the code?

19th Jan 2019, 5:13 PM
Jefferson Villanueva
Jefferson Villanueva - avatar
4 Answers
+ 2
Moving getline(cin, address) above all other input directives causes it to appear at the end. Getline always causes issues with me.
19th Jan 2019, 5:37 PM
Dread
Dread - avatar
+ 1
thanks!!!
19th Jan 2019, 5:59 PM
Jefferson Villanueva
Jefferson Villanueva - avatar
0
It would help if you attached your code, and if you are running it in the SL Code Playground or not.
19th Jan 2019, 5:19 PM
Dread
Dread - avatar
19th Jan 2019, 5:27 PM
Jefferson Villanueva
Jefferson Villanueva - avatar