what happens to the \n read by cin.get initially?
Result of \n of cin.get
if you have noticed or if you are try to do now then the difference between the normal cin with these >>
and cin.get() is that cin>>s will terminate when a whitespace is found but the same will not happen with cin.get() . it will take that also into consideration .
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.