C++ Strings

Strings
The object-oriented way of generating new strings would be something like this: using namespace std; ostringstream o; o << 4 << "KB"; cout << o.str << endl; o.str(""); // reinitialize string o << "something"; cout << o.str << endl; Outputs: 4KB something
 * 1) include
 * 2) include // for cout