//指针的声明
int *p1;
//指针的赋值
int a = 123;
*p1 = &a;
//输出指针的值
cout << p1 << endl;
//输出指针的地址
cout << *p1 << endl;
//输出变量的地址
cout << &a << endl;