转自 http://blog.sina.com.cn/s/blog_4b3336c50102v45n.html std::cin.ignore() can be called three different ways: 1.No arguments: A single character is taken from the input buffer and discarded:std::cin.ignore(); //discard 1 character2.One argument: The…