阅读背景:

如何在c++ 11的迭代器中获得关于auto标识符的更多细节

来源:互联网 
 void test()
 {
       vector <string> s={"hello world"};
       for(vector<string>::iterator it=s.begin();it!=s.end()&&!it->empty();it++)
      {
           for(auto it2=it->begin();it2!=it->end();it2++)//I don't konw  type of it2
           {
                *it2=toupper(*it2);
           }
       cout<<*it<<endl;
     }
}
 void test()
 {
       vector <string> s={"hell



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: