Search:

Type: Posts; User: copeg

Search: Search took 0.09 seconds.

  1. Replies
    5
    Views
    2,138

    Re: multidimensional array 'advancing'?

    The scope of the program you provide is limited, but I meant something more like (pseudo-code)


    int x, y;
    ...
    conditional:
    x--;
    conditional:
    y++;
    ...
  2. Replies
    5
    Views
    2,138

    Re: multidimensional array 'advancing'?

    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...
Results 1 to 2 of 2