how you can add intger value to string in c++

#include <iostream>
#include <string>

int main() {
    int intValue = 42;
    std::string stringValue = "The answer is: ";

    // Convert integer to string using std::to_string
    std::string result = stringValue + std::to_string(intValue);

    // Print the result
    std::cout << result << std::endl;

    return 0;
}