+ 1

Difference between cin.get() and cin.getline()?

(in plain language with clearcut examples pls)

26th Jul 2018, 7:46 PM
Tincture
2 Answers
26th Jul 2018, 8:00 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 1
cin.get gets one char only cin.getline gets a c-string getline gets an std::string
26th Jul 2018, 8:06 PM
Sneher Ador
Sneher Ador - avatar