Hi
I have to pass a 2D array by reference to a constructor of a call where it manipulates this array. I have found out one way of doing so as:
class calc{
double (*my_a)[size];
calc(double (*arr)[size] /* or double [][size] */) : arr(my_a) {}
// Passing array in main function
double arr[size][size];
calc(arr);
It works for me for small size, but I need sizes like 1000 or 2000; when I try that it gives me "stack overflow" compile error. I do not want to send this big array by value; only by pointer or reference, Can anybody help? Thanks