int main() {
int a = 12;
int* b = &a;
int** c = &b;
int*** d = &c;
cout << "a=" << a << endl;
cout << "&a=" << &a << endl;
cout << endl;
cout << "b=" << b << endl;
cout << "&b=" << &b << endl;
cout << "*b=" << *b << endl;
cout << endl;
cout << "c=" << c << endl;
cout << "&c=" << &c << endl;
cout << "*c=" << *c << endl;
cout << endl;
cout << "d=" << d << endl;
cout << "&d=" << &d << endl;
cout << "*d=" << *d << endl;
}
&b:内存的地址
b:键(内存里的内容)也是地址
*b:找到给地址内存中的内容