【强烈推荐】4小时彻底掌握C指针 - 顶尖程序员图文讲解 - UP主翻译校对 (

P1 指针的基本介绍:
指针是一个变量,它存放着另外一个变量的地址。
Pointer is a variable that store the address of another variable.
code:
int a;
int *p;
p=&a;
a=5;
cout<<p<<endl; //p=&a=a的地址
cout<<&a<<endl; //a的地址
cout<<&p<<endl; //p的地址
cout<<*p; //指针所指向地址的值——a的值
*p=8; //可以修改a的值。