vector ivec;
int num,a;
cout << "please enter the vector" << endl;
while (cin >> num)
ivec.push_back(num);
cout << "please enter the element you want to find:";
cin >> a;
cout << a << endl;
无意中突然发现ctrl+z结束vector的输入后,变量a无法输入了,clear(),ingore()都不管用。是Ctrl+z无法清除吗?应该怎么做才能把Ctrl+z给清除了?