摘要:
1 字符串的构造 一般会使用到的构造分为拷贝构造和直接构造 string str1="hello world";//拷贝构造 string str2(10,'c');//直接构造 string str3("hello world");//直接构造 输出得到 hello world ccccccccc 阅读全文
1 字符串的构造 一般会使用到的构造分为拷贝构造和直接构造 string str1="hello world";//拷贝构造 string str2(10,'c');//直接构造 string str3("hello world");//直接构造 输出得到 hello world ccccccccc 阅读全文
posted @ 2023-03-12 22:53
白日梦想家-c
阅读(31)
评论(0)
推荐(0)

浙公网安备 33010602011771号