csripriya1
Programmer
Hi all,
I have a function which takes 2D -array as an argument. When I try to pass a double pointer as an argument ,VC 6.0 complains that the conversion is not possible.
This is how my function looks like
void slope(int a[][2],float slop[],unsigned long );
I used double pointer to dynamically allocate memory.
int **points=NULL;
points= new int* [nvertices+1];
for(i=1;i<=nvertices;i++)
points=new int [2];
this is the function call
slope(points,slop,nvertices);
Can you please help me with this.
Thanks for your time and help.
I have a function which takes 2D -array as an argument. When I try to pass a double pointer as an argument ,VC 6.0 complains that the conversion is not possible.
This is how my function looks like
void slope(int a[][2],float slop[],unsigned long );
I used double pointer to dynamically allocate memory.
int **points=NULL;
points= new int* [nvertices+1];
for(i=1;i<=nvertices;i++)
points=new int [2];
this is the function call
slope(points,slop,nvertices);
Can you please help me with this.
Thanks for your time and help.