摘要: string对象中每个字符的处理: 要用到 for(声明:表达式) 语句 比如简单的打印string str中每一个字符 string str("hello world!!!"); for(auto c: str)cout<<c<<endl; (ps:这里auto 的意思是让编译器自己来决定c变量的 阅读全文
posted @ 2017-02-08 12:50 天才麻将少年 阅读(862) 评论(0) 推荐(0)