摘要: 转载请注明来源! 1. 定义以及初始化 (1) 8种string类对象构造方法; (2) copy();substr(); 2. 基本用法 (1) 打印输出: cout (2) 索引某个位置的字符:[]、at() (3) 大小:size()、length()、max_size()、capacity( 阅读全文
posted @ 2020-06-10 08:52 ya花间持酒 阅读(564) 评论(0) 推荐(0) 编辑