input problems (NOOB)

I have a while loop that gets user input and it sorts it in a char. I am using the >> stream operator. I understand that if a user enters 2 letter it will loop that char with the first letter. then because the 2nd letter is still in the input stream it will loop again using that 2nd value.
what do you think I can do to stop this. I was thinking about using the getline function but I'm unsure.
many thanks.
The topic has been raised many times under different scenarios. In the end, it boils down to the input buffer having something. You can ignore using cin.ignore() or switch to getline(). There may be other ways, but in a nutshell, this is it.
Topic archived. No new replies allowed.