// simple example to show how a ostringstream can be used to 
// convert an integer to a string
//
#include <iostream>
#include <sstream>
using namespace std;

int main()
{
    ostringstream name;
    // write to an ostringstream just like you would write to cout
    name << "hello" << 42;

    // the ostringstream's string contains everything "written" to it 
    cout << "name = " << name.str() << endl;
}

