C++清除输入缓存

调用cin的sync()方法,cin.sync();可以清空全部输入缓存。

posted @ 2013-09-09 11:46  Sun Boy  阅读(447)  评论(0编辑  收藏  举报