📜  如何在 C++ 代码示例中合并字符串数组

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

代码示例1
For string concatenation in C++, you should use the + operator. std::string nametext = "Your name is " + name; where operator + serves to concatenate strings. nametext is an std::string but these do not have the stream insertion operator ( << ) like output streams do.