#include #include //for ostringstream; includes #include using namespace std; int main(int argc, char **argv) { const string word = "size"; const int i = 38; const char c = 'L'; ostringstream ost; ost << word << " " << i << c; if (!ost) { //if (ost.operator!()) { cerr << argv[0] << ": write to ostringstream failed\n"; return EXIT_FAILURE; } cout << "The string contains \"" << ost.str() << "\".\n"; return EXIT_SUCCESS; }