Skip to main content
3 events
when toggle format what by license comment
Jun 23, 2014 at 10:37 comment added kzidane GRect brick[x][y]; where x is the number of rows and y is the number of columns and they're both integers declares a multi-dimensional array of GRects. After you declare the array you may initialize its elements (the GRects) sequentially by looping through all the columns within each row starting with the first row and the first column (x = 0 and y = 0) as in board[0][0] = newGRect(0, 0, 20, 10);. I believe what you meant to say is that you have to declare a variable before you use it.
Jun 17, 2014 at 17:23 review First posts
Jun 23, 2014 at 10:40
Jun 17, 2014 at 17:05 history answered curt CC BY-SA 3.0