I have a program where I call getline(cin, something); multiple times. I need to clear the input buffer of '\n' but if I use cin.ignore() after getline(), I get a cursor on the command line and have to hit enter before being prompted for the next input. How do I clear the input buffer with out this extra line?