C++ examples for File Stream:cout
What is the output of program, cout.setprecision()
#include <iostream> #include <iomanip> using namespace std; int main(int argc, const char *argv[]) { cout << setw( 8 ) << setprecision( 3 ) << 1024.987654; return 0;/*from www . ja v a 2 s. c o m*/ }