64,642
社区成员
发帖
与我相关
我的任务
分享
cout<<"Init ivec1(short):"<<endl;
while(cin>>itemp)
ivec1.push_back(itemp);
fflush(stdin);
cout<<"Init ivec2(long):"<<endl;
while(cin>>itemp)
ivec2.push_back(itemp);
cout<<"Init ivec1(short):"<<endl;
while(cin>>itemp)
ivec1.push_back(itemp);
cin.clear();
cin.sync();
cout<<"Init ivec2(long):"<<endl;
while(cin>>itemp)
ivec2.push_back(itemp);