遍历字符串

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

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