#include<iostream>
#include<vector>
using namespace std;
int main()
{
vector<string> words;
string temp;
while(cin>>temp)
words.push_back(temp);
cout<<"number of words"<<words.size()<<endl;
}
当输入:aa dd ss ctrl+Z 时,不能用Ctrl+Z来结束输入,必须在回车之后在按Ctrl+Z来结束
这是为什么???