This is a discussion on What's the difference between cin >> and cin.get()? within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by whiteflags I still recommend std::string. I will echo that. There is no sense in using C-style strings....
All right I get it now. Aren't I right that the null character is never printed?
Nothing gets printed.Code:cout << '\0' << endl;
Wait a minute - the null character gets printed the same as a space.
Last edited by c_weed; 11-26-2010 at 06:59 PM. Reason: added last line