Thursday, July 07, 2011

Formatting under ostream

Formatting under ostream: "double x[10], y[10];
cout.precision(4); // Set 4 digits past the decimal
cout.flags(ios::right+ios::fixed); // Fixed point, right justified"