312,878 views
42 votes
42 votes
I need help on this, need answer asap.

I need help on this, need answer asap.-example-1
User Ian Fako
by
2.9k points

1 Answer

20 votes
20 votes

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!

User Kevin Bomberry
by
2.8k points