Need to revise logic that isn't working

First i try to load a file named Lvl1.map
This gives me some more directiries and file, some of which contain arrays and others are images;
When I do the load array part, it fails. Could you tell me what the problem is?
The code:
http://pastebin.com/RYJ6F0h4
The files:
the .map file:
http://pastebin.com/PWXDuRjh
and the array i try to load:
http://pastebin.com/kz0XtUtc
and what prints to the screen right before it crashes:
http://pastebin.com/CJLCu9Ln
Any help would be useful!
Thanks in advance!
Last edited on
The inner loop waits for i to reach 21 but that will never happen.

1
2
3
4
5
6
for (int i = 0; i != 20; i++){
    for (int j = 0; i != 21; j++){
        cout << test [i] [j] << " ";
    }
    cout << endl;
}
Last edited on
Topic archived. No new replies allowed.