Difference between getline and cin? | Sololearn: Learn to code for FREE!

+1

Difference between getline and cin?

c++

6/13/2016 1:56:06 PM

Utpal Kumar

4 Answers

New Answer

+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!