Here is what I am trying to do
I have a one dimensional char array to which the size is set at runtime eg.
I have another one dimensional char array of a fixed size which holds a series of values, 96 of them to be exact. eg.
|
char characterarray[96] = {...}
|
I am looking for the cleanest way to iterate through each possible value and print to output.
For example if the value of "size" was set to "3" making "array[]" 0 - 2,
I want to be able to adjust these values in a counting fashion with a number base of 96 (0-95) and output the result so I end up with 96*96*96 values
The output isn't a problem, I'm having trouble with the iteration.
I've tried to use nested for loops but since I need to account for the value of "size" being specified at runtime, I'm having trouble with this.
also. I would like to avoid using any specialized libraries if possible. Whats the best way to do this?
thanks,
Dan