📜  c++ 将变量插入字符串 - C++ 代码示例

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

代码示例1
#include 

using namespace std;

int main()
{
  string someString = " C++ "
    
  cout << "This is a" + someString + "example." << endl;
  
  return 0;
}