E
Ensoul Chee
I used
#include <iostream.h>
int m;
cout << "Hexadecimal == 0x" << hex << m << endl;
to print value of m in hexadecimal mode.
But I got the compile error like this
couttest.cpp:20 `hex' undeclared (first use this function)
What's wrong with the code?
OS: Redhat 9
Compiler: gcc 3.2.2
#include <iostream.h>
int m;
cout << "Hexadecimal == 0x" << hex << m << endl;
to print value of m in hexadecimal mode.
But I got the compile error like this
couttest.cpp:20 `hex' undeclared (first use this function)
What's wrong with the code?
OS: Redhat 9
Compiler: gcc 3.2.2