Answers for "c++ insert variable into string"

C++
0

c++ insert variable into string

#include <iostream>

using namespace std;

int main()
{
  string someString = " C++ "
    
  cout << "This is a" + someString + "example." << endl;
  
  return 0;
}
Posted by: Guest on January-02-2021

Code answers related to "c++ insert variable into string"

Browse Popular Code Answers by Language