Ive got a structure in my program, (look below), but I have a problem, in the stucture, what I want to do is to make a while loop that does something like this...
stuct:-Code:int x = 0; int y = 1; while(x < 9) { piece_green.py[1] = Position.X; piece_green.py[2] = Position.Y; x++; y++; // I want to cycle through the struct, but only the 'p's }
Code:struct piece_green { int p1; int p2; int p3; // This carries on up to eight }