|
From: Danny A. <tam...@ms...> - 2002-11-12 00:27:12
|
Could someone tell me if ios header file is suppose to exist in Dev C++? =
When I try to compile the code below I get the error that ios does not e=
xist.
#include <iostream>
#include <iso646>
using namespace std;
int main(void)
{
cout << "Default True, False \n"
<< true << " " << false << endl;
=20
cout.setf(ios::boolalpha);
cout << "\nwith ios::boolalpha:\n"
<< true << " " << false << endl;
=20
cout << "\n140 in hex\n";
cout.setf(ios::hex, ios::basefield);
cout.setf(ios::showbase);
cout << 140 << endl;
=20
float f[2] =3D {1.0f, 775.374f};
=20
cout << "\nDefault numeric formula\n"
<< f[0] << endl
<< f[1] << endl;
=20
cout.setf(ios::showpos);
cout << "\nand with shopos\n"
<< f[0] << endl
<< f[1] << endl;
=20
//indicates that cout should always use 6 digit precision
cout.setf(ios::fixed);
cout << "\nand with a precision of 6\n"
<< f[0] << endl
<< f[1] << endl;
//system pause
char end;
cin >> end;
return 0;
}
|