关于按下ctrl+z后,以后的cin失效的问题

下面这代码按下Ctrl+z结束while输入后,接下来的cin >> val2就没法输入了 #include <iostream> #include <vector> #include <string> #include <algorithm> #include <typeinfo> using namespace std; int main() { vector<int> vi; int
相关文章
相关标签/搜索