📜  如何在 C++ 代码示例中连接两个字符串

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

代码示例1
#include 
#include 

std::string text = "hello";
std::string moretext = "there";
std::string together = text + moretext;
std::cout << together << std::endl;

>> hello there