针对二维数组:
double ch[2][3] ={0.2,0.5,0.6,0.9,0.6,0.3};
double *p = *ch;(二维数组中*ch 其实就是ch[0] )
double **p1 = &p;
p1 = &p;
double ch[2][3] ={0.2,0.5,0.6,0.9,0.6,0.3};
/*double ch[2]={
0.2,0.3
};*/
//int i =10.0;
double *p ;
double **p1 ;
//double *p,**p1;
p = *ch;
//p = &(ch[0][0]);
p1 = &p;
cout << *ch <<endl;
cout << ch <<endl;
cout << *p <<endl;
cout << **p1 <<endl;
return 0;