Go for it. What is stopping you? This is perfectly legal.
I c++ i want to store a full name in one variable of type string including spaces?
cin %26gt;%26gt; will only read up until it encounters whitespace (space, tab, etc.)
I think you are looking for get or getline
Ex:
string s ;
getline( cin, s ) ;
baseball cards
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment