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

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>