   Problem with concatenate string
  Hey guys, I'm having problem with appending words to a string.Example:I have declared a string, then I would like to add an integer behind the string and then add another word behind the integer again..It's something looks like this:string name;name = "Hello" + i + "World"So how am I going to do that? Because I get an error of "cannot add two pointers".What is the correct way of doing that?I heard some of them saying that need to use strcat()but when I use strcat(name, "Hello") then it said cannot convert from String to CharKindly looking for reply.Thanks   
  I recommend you use an ostringstream like so:#include <sstream>int main(){    std::ostringstream out;   out << "Hello " << 42 << " World"; // You can retrieve the resulting string through std::ostringstream::str() - that is, out.str().}Another option is Boost's lexical_cast, but in my opinion it makes more sense to use a string stream here.   ;string name;stringstream out;out << "hello"<< i <<"world";name = out.str();