正确示范:
void change(int* a, int* b) {
int temp = *a;
*a = *b;
*b = temp;
}
错误示范:
void change(int* a, int* b) {
int* temp = a;
a = b;
b = temp;
}
标签:temp,int,void,C++,示范,change,指针 From: https://www.cnblogs.com/wanshengxiaobai/p/17582037.html