📜  char 数组到字符串 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:46.677000             🧑  作者: Mango

代码示例6
char arr[ ] = "This is a test";

string str(arr);


//  You can also assign directly to a string.
str = "This is another string";

// or
str = arr;