C++清除输入缓存

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

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