Can you read this kind of way a lookup table or it has to be a multidimensional array mixing the corresponding values one after the other?
Code:#include <string> #include <iostream> using namespace std; static const char lookup[17] = "0123456789:;<="; static const char *Hex[] ={ "0x60","0x61","0x62","0x63","0x64", "0x65","0x66","0x67","0x68","0x69", "0x71","0x72","0x73","0x74","0x75" }; int main() { cout << Hex[lookup[13]] << endl; return 0; }