#include #include using namespace std; void SimplePointers(); void ArrayPointers(); void DynamicArray(); void StructurePointer(); int main() { //SimplePointers(); //ArrayPointers(); //DynamicArray(); StructurePointer(); system("PAUSE"); } void SimplePointers() { int number=234; int * pNumber=&number; cout << "number is " << number << " the address is " << &number << endl; cout << "pNumber is " << pNumber << " *pNumber is " << *pNumber <> size; int * pDynamic = new int [size]; for(int i=0; i< size;i++) { cout << "Enter a value: " ; cin >> pDynamic[i]; } for(int i=0; i< size;i++) { cout << pDynamic[i] << endl; } delete pDynamic; } void StructurePointer() { struct name { string firstname; string mi; string lastname; }; name * pName=new name; cout << "Enter your first name" <> pName ->firstname; cout << "Enter your middle initial " << endl; cin >> pName ->mi; cout << "Enter Your Last Name " << endl; cin >> (*pName).lastname; cout << "Welcome, " << pName -> firstname << " " << pName -> mi << " " << (*pName).lastname << endl; }