摘要: 刚写小一段代码,input,isearch均是int类型,ivec是vector<int>类型1 cout << "Enter integers:";2 while (cin >> input)3 ivec.push_back(input);4 5 cin.clear();6 cin.ignore(1024);7 8 cout << "Which number do you want to search:";9 cin >> isearch;在运行中输入:若干整数 回车 Ctrl-Z 回车奇怪, 阅读全文