weixin_39030814
2017-06-03 13:17C++ 迭代器 基础 请问为什么没输出结果?
#include
#include
#include
using namespace std;
int main()
{vectortx;
string s;
while(getline(cin,s))
tx.push_back(s);
for(auto i=tx.begin();i!=tx.end()&&!i->empty();i++)
{for(auto j=i->begin();j!=i->end();j++)
*j=toupper(*j);
cout<<*i<<endl;}
return 0;}
- 点赞
- 回答
- 收藏
- 复制链接分享
2条回答
为你推荐
- C++ 迭代器 基础 请问为什么没输出结果?
- 迭代器
- c++
- 2个回答