Public feed #889158

Something

public text v1 · immutable
Raw Edit
·published 2008-02-02 18:43 UTC
rendered paste body
#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