+ 1

Difference between getline and cin?

13th Jun 2016, 1:56 PM
Utpal Kumar
Utpal Kumar - avatar
4 odpowiedzi
+ 2
cin will ignore the white spaces Whereas getline will include all the white space till new line character.
13th Jun 2016, 6:12 PM
Roshan Kumar
Roshan Kumar - avatar
+ 1
getline more secure
13th Jun 2016, 2:02 PM
Lekhraj Singh
Lekhraj Singh - avatar
+ 1
Thanks any other differences!
13th Jun 2016, 6:15 PM
Utpal Kumar
Utpal Kumar - avatar
+ 1
Thanks!
14th Jun 2016, 10:05 PM
Utpal Kumar
Utpal Kumar - avatar