Advertisement

using 2D arrays

Started by May 26, 2000 06:52 AM
10 comments, last by Crazie Joey 24 years, 7 months ago
I think initialising an array in that way after it has already been created would cause a memory leak (where did the original array memory go when you pointed it to the new initialisers?). Not sure though.
You know a 2d array is just a 1d array that has x*y elements where [y][x]. So you can get away with just type casting it as a 1 array or something that cant you?
If not just do it the old fasion way.
array[0][0] = 0;

OneEyeLessThanNone

This topic is closed to new replies.

Advertisement