#include <iostream>
typedef unsigned short int USHORT;
int main()
{
using namespace std;
USHORT myAge;
USHORT * pAge = 0;
myAge = 5;
cout << myAge << endl;
pAge = &myAge;
cout << "*pAge: " << *pAge << endl << endl;
*pAge = 7;
cout << *pAge << endl;
cout << myAge << endl << endl;
myAge = 9;
cout << myAge << endl;
cout << *pAge << endl;
return 0;
}
|