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;
}

posted @ 2008-11-26 21:12  雨城  阅读(225)  评论(0编辑  收藏  举报