i want to know how i create a dynamic matrix but i want to alloc it on the ram not the heap
here's some the code i have:
if i create a big matrix like 1000x1000 i run out of memory help me plz....Code:#include <iostream.h> #include <conio.h> void main (void) { int **m; m = new int *[3]; for (int i=0; i<3;i++) m[i]=new int [4]; for (i=0; i<3;i++) delete [] m[i]; delete [] m; }