Something like this should work. It isn't tested, but it should give you a general idea...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
char x, y, z;
for (x=55; x<='Z'; x++){//55 is the decimal number for 'A' -10
for (y=55; y<='Z'; y++){
for (z=55; z<='Z'; z++){
if (x<'A'){cout<<(char)(x-8);}
else {cout<<x;}
if (y<'A'){cout<<(char)(y-8);}
else {cout<<y;}
if (z<'A'){cout<<(char)(z-8);}
else {cout<<z;}
//Display something else here...
cout<<"\n";
}
}
}