David Matthewson

format commands in C++

Discussion created by David Matthewson on Jun 18, 2007
Latest reply on Jun 19, 2007 by CompilerGuru
I'm a student learning C++.  Our textbook is "Big C++" by Horstman.  The book came with a CD containing Code Warior Development Tools for Windows Ver 8.0. 
I am having trouble formating output.  Im using the following command:
cout << fixed << setprecision(2);
and the compiler complains.  I have tried to find the correct format for this command with no luck.  I can not find common header files on my disk, or any reference to any on the Metroworks site.
Can anyone tell me what is wrong with the above command?