#include%26lt;iostream%26gt;
int main()
using namespace std;
{
int x=12;
cout%26lt;%26lt;hex%26lt;%26lt;x;
return 0;
}
__________________________________
The result is "C", but i need it to display "00000C", i thought of doing it with IF statements and other variables, but that would slow down the program...
HELP ME (C++!!), PROGRAM INSIDE!!?
cout %26lt;%26lt; setfill ('0') %26lt;%26lt; setw (6);
cout %26lt;%26lt; hex %26lt;%26lt; 12 %26lt;%26lt; endl;
I'm not an expert on cout
sweet pea
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment