Why can't we input a string after we input aany other variable? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why can't we input a string after we input aany other variable?

Like in code blocks It doesn't work when "gets" comes after cin >>

4th Jul 2016, 1:21 AM
Adarsh
Adarsh - avatar
1 Answer
0
I also encounter similar problem in code blocks . I use cin.getline function to input string .
11th Jul 2016, 4:25 PM
shubham sharma