int _tmain(int argc, char* argv[])
{
string s;
vector<string> svec;
cout<<"please enter words(enter ctrl+z quit):"<<endl;
while(cin>>s)
svec.push_back(s);
vector<string>::iterator it=svec.begin();
int cnt(0);
while(it!=svec.end())
{
for(int i=0;i!=(*it).length();i++)
{
(*it)[i]=toupper((*it)[i]);
}
cout<<*it<<" ";
cnt++;
if(cnt%4==0)
cout<<endl;
it++;
}
return 0;
}
posted on 2012-07-08 16:15
qiushao 阅读(138)
评论(0) 编辑 收藏 引用