21天学通c++之第二周 指针 8.4 确定指针中存储的内容
#include<iostream>
typedef unsigned short int ushort;
using namespace std;
int main()
{
unsigned short int myage=5,yourage=10;
unsigned short int *page=&myage;
cout<<"myage "<<myage
<<"yourage"<<yourage<<endl;
cout<<"&myage: "<<&myage
<<"&yourage: "<<&yourage<<endl;
cout<<"page: "<<page<<endl;
cout<<"*page: "<<*page<<endl;
return 0;
}