
please wait
getline(cin, var_name)
which gets input and sets it as a string. cin >> var_name
which goes up to the fist whitespace and stops and sets whatever type was declared for as var_name. What are the other ways to get user input?cin.get()
used for, just windows not closing under Windows? Also what is cin.ignore()
?cin.get()
-> http://www.cplusplus.com/reference/istream/istream/get/cin.ignore()
-> http://www.cplusplus.com/reference/istream/istream/ignore/