**君子恥其言而過其行**
typedef int* pint;
typedef pint* ppint;
void func(ppint &x)
{
x = new int*;
*x= new int(32);
}
//使用方法
int *pi = &ival;
int* &ptrVal2 = pi;
typedef int* pint;
typedef pint* ppint;
void func(ppint &x)
{
x = new int*;
*x= new int(32);
}
//使用方法
int **p=0;
func(p);
cout<<(**p)<<endl;
int *pV;
pV = new int(2); //這里注意與在cpp中與java中語法的差異
cout<<"PV = "<<(*pV)<<endl;
int *pi = &ival;
int* &ptrVal2 = pi;