套用引用公式:Type & ref =val;
假设:type 类型为int * 由公式得 int * & ref = val; // int * *const ref=&val;
void run(int * &q){ //int * & q=p;
}
void test(){
int * p=NULL;
run(p);
}
套用引用公式:Type & ref =val;
假设:type 类型为int * 由公式得 int * & ref = val; // int * *const ref=&val;
void run(int * &q){ //int * & q=p;
}
void test(){
int * p=NULL;
run(p);
}
该资源仅限VIP专享下载