目录
String的遍历
一、初始化
初始化有两种方式,其中使用等号的是拷贝初始化,不使用等号的是直接初始化。
string str1 = "hello world"; // str1 = "hello world"
string str2("hello world"); // str2 = "hello world"
string str3 = str1; // str3 = "hello world"
string str4(str2); &
目录
String的遍历
初始化有两种方式,其中使用等号的是拷贝初始化,不使用等号的是直接初始化。
string str1 = "hello world"; // str1 = "hello world"
string str2("hello world"); // str2 = "hello world"
string str3 = str1; // str3 = "hello world"
string str4(str2); &
756
6285
1983