例子:
double a =20.0;
ostrstream out_message;
out_message<<endl
<<"This is a test."<<endl
<<"The sleected body mass is:"
<<a<<endl<<endl<<ends;
UgInfoWindow:pen();
UgInfoWindow::write(out_message.str());