Skip to content

Instantly share code, notes, and snippets.

Created July 5, 2014 09:39
Show Gist options
  • Save anonymous/5beb462373319f8b5e96 to your computer and use it in GitHub Desktop.
Save anonymous/5beb462373319f8b5e96 to your computer and use it in GitHub Desktop.
int array[height][width]; // create 2d array
for(int y; y < height; y++) { // iterate through rows
for(int x; x < width; x++) { // iterate through columns
array[y][x] = 1; // fill array with 1's
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment