Run it from command line
or
Run it with Ctrl+F5 (if in VS)
or
read FAQ > Flush the input buffer - Cprogramming.com
or use
cin.ignore http://www.cplusplus.com/reference/istream/istream/ignore/