Newbie: multidimensional arrays problem
The problem almost certainly is caused by the exact size of your
arrays. Make them a little larger, and odds are your program will
crash immediately on startup. Make them a little smaller and it'll
work fine, or maybe crash later. Move them outside the main()
function, and the problem will vanish for good. Replace them by
dynamically allocated arrays (using the 'new' operator), and it'll
vanish, too, but programming becomes a bit more tricky.
Check out the DJGPP FAQ, Q 15.9, "How much stack can I have in DJGPP
programs?", details.
--
Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.
|