【C++学习】-字符串的遍历---ShinePans

来源:互联网 发布:2016年最火的网络铃声 编辑:程序博客网 时间:2024/06/16 19:12
#include <iostream>#include <string>using namespace std;int main(){string str = "I am a good boy!";for (auto c : str)cout << " " << c;system("pause");return 0;}

0 0
原创粉丝点击