Don't Know if it is still of use to you, but try this if it is:
int main()
{
cout.unsetf(ios::dec);
cout.setf(ios::hex);
cout << 100;
cin.get();
return 0;
}
This changes how cout looks at integers. You can also develop formatted i/o using many other format flags. You should really check it out. While you are at it, you should check out i/o manipulators...they make the code a lot more user friendly.