What's the difference between getline and cin? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

What's the difference between getline and cin?

Don't they perform the same function? To get user's input and store the value in specified variable.

11th Jun 2016, 3:15 PM
Thomas Ho
Thomas Ho - avatar
1 ответ
+ 1
cin read from standard input stream while getting read from any input stream
11th Jun 2016, 3:29 PM
Stavros Spinthiris
Stavros Spinthiris - avatar