What is the difference between cin.get and cin.getline? Both allow reading whitespace so what is unique about cin.getline?
C++ character arrays
cin.getline removes the newline charater from the buffer while cin.get does not.
What is the difference between cin.get and cin.getline? Both allow reading whitespace so what is unique about cin.getline?
cin.getline removes the newline charater from the buffer while cin.get does not.