+ 1
How to take a string with spaces without disturbing the input stream? I mean cin does not skip next inputs.
I tried using different methods like cin.getline function but i observed that sometimes it skips next inputs, specially when next input is also a string or a character. So i want to know how to deal with this problem?
2 Respostas
0
getline() is a function, abd it doesnt need cin to work. you can use it by itself on a separate line