// c++ 连续读取数据,以回车结束
vector<int> nums;
int a=0;
while(cin>>a)
{
nums.push_back(a);
char c=cin.get();
if(c=='\n')
{
break;
}
}
// c++ 连续读取数据,以回车结束
vector<int> nums;
int a=0;
while(cin>>a)
{
nums.push_back(a);
char c=cin.get();
if(c=='\n')
{
break;
}
}