consider this array:
I want to put it in a loop such that all 16 element change in each iteration. Some thing like this:
How can I do that? what the conversion function? I saw many threads that they wanted to put a hex value on the output stream. I want a function. Does c++ provide such function?
Thanks,
Code:
char key[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F};
Code:
for ( int i = 0; i < 100; i++ ) { [B]j = hex(i)[/B] [B][I]// what is this[/I][/B] char key[16] = {j, j+1, j+2, j+3, j+4, j+5, j+6, j+7, j+8, j+9, j+10, j+11, j+12, j+13, j+14, j+15}; }
Thanks,
Comment