#include <iostream> using namespace std; int main() { double f = 2350 cout.precision(2); cout << f << endl; cout.setf(ios::fixed,ios::floatfield); // floatfield set to fixed cout << f << endl; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:7: error: expected ‘,’ or ‘;’ before ‘cout’
Standard output is empty