Answer:
int main() {
int _2dArray[32][32];
for (int i = 0; i < 32; i++) {
for (int j = 0; j < 32; j++) {
_2dArray[i][j] = j + i * 32;
}
}
return 0;
}
Step-by-step explanation:
Here is a generic C/C++ 2d array traversal and main function example. The rest you'll have to figure out based on what kind of app you're making.
Good luck!