Re: [Dev-C++] compiler error using: cout<<setprecision(2)<<fixed;
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <ri...@te...> - 2003-02-26 23:24:37
|
jrw...@ne... escribió:
>#include <iomanip> //required for setprecision
>#include <iostream.h> // required for fixed or scientific manipulators
>
>void main ()
>{
> cout<<setprecision(2)<<fixed; //compiler error - 'fixed' udeclared???
>
>
nada´s reply is correct but you can also use:
cout << setprecision(2) << setiosflags(ios::fixed) ;
--
Cheers
Ricardo Amores Hernández
ricky QuitaEsto @ telecable.es
|