#include #include #include int main() { const size = 64; char buf[size] = {'z','z','z','z','z','z','z','z','z','z', 'z','z','z','z','z','z','z','z','z','z', 'z','z','z','z','z','z','z','z','z','z', 'z','z','z','z','z','z','z','z','z','z', 'z','z','z','z'}; ostrstream mystr(buf, size, ios::out); // string stream obj double amt = 54.95; // compose string using mystr object mystr << "The price is $" << amt << '.' << '\0'; cout << "length= " << strlen(buf) << endl; // Display string composed cout << buf << "\n"; return(0); }