cin vs getline for this use

closed account (4Gb4jE8b)
Okay, what i'm trying to do is this, get a whole line (up to \n char) convert all and then convert them all to lowercase characters. Now i've found out how to do one or the other, but not both.

getline(cin,mystr); gets whole line

cin >> nouppercase >> mystr; gets all characters up to whitespace char, and then converts to lowercase.

How can i do both?
closed account (4Gb4jE8b)
nevermind i figured it out
Topic archived. No new replies allowed.