I am having problems in taking inputs a multiple times on this platform....Can anybody helpe out? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I am having problems in taking inputs a multiple times on this platform....Can anybody helpe out?

I am making a game which requires a two player input but just after the first input it gets terminated.

21st Jan 2017, 1:55 PM
nitin nepalia
nitin nepalia - avatar
2 Answers
+ 1
If input is string try getline(cin>>ws,s); where s is string s; ws represents white spaces
21st Jan 2017, 7:15 PM
Kartik Ahuja
Kartik Ahuja - avatar
0
can you see me your code ?
21st Jan 2017, 2:38 PM
Aous Mohammad
Aous Mohammad - avatar