manipulator like setw and setprecision are stated as undeclared in Dev C++..why these happen? and how to fix these?
Setw undeclared?
I think you need to include iomanip.h first... like this...
#include %26lt;iomanip.h%26gt;
These kinds of errors just mean that you lack the required headers to include... (^^,)
http://ronaldborla.blogsome.com/
Reply:Have you included these files? If not this can cause that error.
#include %26lt;iostream%26gt;
#include %26lt;iomanip%26gt;
Also, omitting declarations like:
using namespace std;
can cause errors too, although if you use the std:: format you can leave using declarations out sometimes.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment