CPP/Strings/Concatenate
From ProgrammingExamples
Concatenate.cpp
#include <iostream> #include <string> #include <sstream> using namespace std; int main() { string test; test = "hello"; int scan = 34; string test2; stringstream out; out << scan; test2 = out.str(); cout << test << test2 << endl; return 0; }