How to convert an integer to a hexadecimal string in C++

int number = 42;
stringstream ss;
ss << hex << number;
// now ss.str(), which is a string, contains "2a"

BIN to ISO on Mac OS X

Are you looking for a free, open-source program to convert your BIN file(s) to ISO? Look no further, here’s binchunker to the rescue!

http://he.fi/bchunk/

The linked site contains the source code, but if you’re interested in a version (1.2) compiled for Mac OS X (Intel), then grab it from here.