View Single Post
  #1 (permalink)  
Old 06-10-2007, 04:52 PM
HELLLO
Posts: n/a
[SOLVED] hELP ME (C++!!), PROGRAM INSIDE!!?

#include<iostream>
int main()
using namespace std;
{
int x=12;
cout<<hex<<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...

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!