strinc concatenation c++ code example
Example 1: concatenation cpp int and stirng
// with C++11
string result = name + std::to_string(age);
Example 2: c++ string concatenation
string first_name = "foo"
string last_name = "bar"
std::cout << first_name + " " + last_name << std::endl;