#include #define ASIZE 1000 void makeobjects(); // prototype void makepointers(); void makehuge(); class bigobject { public: int a[ASIZE]; }; class account // typical class that holds data { public: double balance; int phonenum; }; class hugeobject // class with pointers to objects { public: account* a[ASIZE]; hugeobject() { int i; for (i=0;ia[i] = i; delete(b); // delete object on HEAP } void makehuge() // makes pointers to hugeobjects { int i; hugeobject *b; b = new hugeobject(); for (i=0;ia[i]->balance = 120.53; delete(b); } void main() { int i; for (i=0;i<1000000;i++) makeobjects(); cout << "\nNow for pointers:"; getchar(); for (i=0;i<1000000;i++) makepointers(); cout << "\nNow for huge objects:"; getchar(); for (i=0;i<10000;i++) makehuge(); }