The String Class and cin.ignore()

So much programming to learn, so little time.

I read about The String class online, but even though we use g++, I couldn’t get z = upcase(x) to work.

I learned that I can’t do cin.ignore(1000,’\n’) unless I’m sure that I’ve requested input, because otherwise it stops the user until 1000 characters or \n (newline or enter) is submitted.

Leave a Reply