The scope of the program you provide is limited, but I meant something more like (pseudo-code)
int x, y;
...
conditional:
x--;
conditional:
y++;
...
Type: Posts; User: copeg
The scope of the program you provide is limited, but I meant something more like (pseudo-code)
int x, y;
...
conditional:
x--;
conditional:
y++;
...
Think about using 2 variables, say x and y, each access the appropriate portion of the array. You can then use these to access the array elements, and increment/decrement/set them to 'move' through...