64,282
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <string>
#include <vector>
#include <list>
#include <deque>
using namespace std;
void main()
{
vector<string> svec;
string a,b;
while(cin >> a)
svec.push_back(a);
if(!a.empty())
{
b = svec.front();
cout << b << endl;
b = svec[0];
cout << b << endl;
b = *svec.begin();
cout << b << endl;
}
}