I need to make a matrix of 450 x 600 of my class object. When I try to make it I get a stackoverflow exception. I tried making a 450 x 600 matrix of ints and it does the same thing. How can I overcome this limitation?
I need to make a matrix of 450 x 600 of my class object. When I try to make it I get a stackoverflow exception. I tried making a 450 x 600 matrix of ints and it does the same thing. How can I overcome this limitation?
Last edited by Cornpops; 03-06-2003 at 02:35 PM.
Use the heap and not the stack.orCode:int n; //using the stack int *n = new int(); //using the heap delete n;ggCode:int n[100]; //using the stack int *n = new int[100]; //using the heap delete[] n;