關於按下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
相關文章
相關標籤/搜索