#include <iostream>
#include <sstream>
#include <string>
int main() {
// Step 1: Declare a stringstream object
std::stringstream ss;
// Step 2: Declare variables
int integerVar = 42;
double doubleVar = 3.14;
std::string stringVar = "Hello, World!";
// Step 3: Use the stringstream to convert variables to strings
ss << "Integer: " << integerVar << ", Double: " << doubleVar << ", String: " << stringVar;
// Step 4: Retrieve the concatenated string
std::string result = ss.str();
// Step 5: Display the result
std::cout << result << std::endl;
return 0;
}