How to concatenate std::string and int in C++?
Hello everyone! I just started learning C++ and encountered a problem that seems simple, but I can't find the right solution. I need to concatenate text and a number into one string. For example, I have a variable `int age = 25;` and a string `std::string message = "Age: ";`. I want to get the string "Age: 25" as output. In Python, I would just write `message + str(age)`, but in C++ this doesn't work. When I try to do `message + age`, the compiler gives an error. I tried using `std::to_string()`, but I'm not sure if that's the right way. Maybe there is some special operator or function for concatenating a string and a number? Please tell me how to do this correctly so that the code is correct and conforms to modern C++ standards. Thanks in advance!\n\nHere is an example of my