c12指针引用.cpp
#include <iostream>
using namespace std;
struct students12
{
int age;
};
int main()
{
students12 stu;
students12* p = &stu; // 结构体指针
students12* &pp = p; // 结构体指针起别名
pp->age = 20;
// (*pp).age = 22;
cout << "age: " << p->age << endl;
cout << "age: " << pp->age << endl;
return 0;
}