Re: Variable Stack Error
- Posted by Icy_Viking 5 days ago
- 110 views
petelomax said...
Icy_Viking said...
#define BOXES 10 for (int i = 0; i < 4; ++i) for (int j = 0; j < 4; ++j) //assert(boxIndex < BOXES); //causes program to abort
I'd say BOXES needs to be 16.
Thanks, it worked!