Can a class has a member array which will be dynamically allocated during runtime? Such as
double* A=new double[n]
here n is an integer member variable and will be determined during runtime and the class will have the array *A allocated.
Thanks in advance.
double* A=new double[n]
here n is an integer member variable and will be determined during runtime and the class will have the array *A allocated.
Thanks in advance.
Comment