I am really new to C++ programming so please pardon my silly question.
I have an array that looks like this:
double myarray [15][20000]; // Works ok but stack overflow error if I change 15 to about 200
I would like to achieve something like this:
double myarray [total][20000];
then at runtime I want user to input the value of total:
cin>>total
Please advice on how to acheive this and what is the best practice to solve this and avoid stack overflow.
Thanks.