64,281
社区成员
发帖
与我相关
我的任务
分享
vector<string *> svec;
string str;
while (cin >> str)
{
svec.push_back(&str);
}
for(vector<string*>::iterator iter = svec.begin(); iter != svec.end(); ++iter)
{
cout << **iter << " " << (**iter).size() << endl;
}