int main ()
{
double g = 8.3631;
double h = 17.2794;
double j = 52;
linspace(g,h,j);
}
void linspace(double d1, double d2, double n)
{
double temp = n - 2;
double* y[temp]; <=====error=====
}
how to make it complete?
we cannot pass the variable into array?
you never assigned y a name or value? the problem could also be that 52 is of type char not double
Last edited on
yaya..now can work ed..
need this statement
double* y = new double[temp];
assuming that you assingned new double temp to type INT with a value