string相关用法

(1)c++字符串(string)若干初始化的方法: string test1; //空串 string test2 = “内容”; //使用= string test3(“内容”); //使用引用字符数组作为参数传给构造函数 string test4(test2); //用一个string初始化另一个string string test5(test2,pos,num); //从test2中的第p
相关文章
相关标签/搜索