#include #include int main() { enum { size = 256 }; char buf[size]; ostrstream osstr = { buf, size }; int i = 3, j = 5, k = 7; double x = 12345678.9, y = 98765.4321e-11; osstr | i | hex(j) | wd(10, k) | sci(x) | unit(eng(y)); write( osstr ); printf( "%s", buf ); sout | i | hex(j) | wd(10, k) | sci(x) | unit(eng(y)); // char buf2[] = "12 14 15 3.5 7e4"; // istrstream isstr = { buf2 }; // isstr | i | j | k | x | y; // sout | i | j | k | x | y; }