string相關用法

(1)c++字符串(string)若干初始化的方法: string test1; //空串 string test2 = 「內容」; //使用= string test3(「內容」); //使用引用字符數組作爲參數傳給構造函數 string test4(test2); //用一個string初始化另一個string string test5(test2,pos,num); //從test2中的第p
相關文章
相關標籤/搜索