遍历字符串

string str;
int l = str.length();
for(int i = 0 ;i < l ;i++)
cout << str[i];

posted @ 2019-03-05 09:07  周敏6012  阅读(198)  评论(0编辑  收藏  举报