狂自私

导航

c++清空缓冲区

cin.clear();
cin.ignore(numeric_limits<std::streamsize>::max(), '\n');

posted on 2019-05-06 12:38  狂自私  阅读(333)  评论(0)    收藏  举报