Friday, December 12, 2008

This one took me a bit of searching...

To represent a literal hex number (i.e. "FF"), is like this:
int h = 0xFF;
Preface the hex # with a "0x" and it treats it as hex. Much like C++ actually...