Created
July 5, 2014 09:39
-
-
Save anonymous/5beb462373319f8b5e96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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