📜  添加两个常量字符指针 c++ 代码示例

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

代码示例1
const char *one = "Hello ";
const char *two = "World";

string total( string(one) + two );

// to use the concatenation as const char*, use:
total.c_str()