New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Difference between getline and cin?
4 Answers
+ 2
cin will ignore the white spaces
Whereas
getline will include all the white space till new line character.
+ 1
getline more secure
+ 1
Thanks any other differences!
+ 1
Thanks!