Yes, you are likely to see the address of the stringstream.
If you want to display the string it contains, try
cout << stream.str();
Yes, you are likely to see the address of the stringstream.
If you want to display the string it contains, try
cout << stream.str();