Public feed
#889158
#include <iostream>
using namespace std;
int main()
{
cout << setiosflags(ios::fixed)
<< setiosflags(ios::showpoint)
<< setprecision(2);
<< " The result of 15 / 4 is " << 15 / 4
<< " \nThe result of 15 % 4 is " << 15 % 4
<< " \nThe result of 5 * 3 - (6 * 4) is " << 5 * 3 - (6 * 4)
<< endl;
return 0;
}
ERROR
thomas@crowenix:~/bin$ g++ prg.cpp
prg.cpp: In function âint main()â:
prg.cpp:7: error: âsetiosflagsâ was not declared in this scope
prg.cpp:9: error: âsetprecisionâ was not declared in this scope