How do you append an int to a string in C++? [duplicate]
This question already has answers here: How to concatenate a std::string and an int (24 answers) Closed 5 years ago. int i = 4; string text = “Player “; cout << (text + i); I’d like it to print Player 4. The above is obviously wrong but it shows what I’m trying to do here. … Read more