#include #include "Account.h" class AccountPtr { public: AccountPtr(unsigned n, double b) : ptr(new Account(n,b)), count(0) { } Account* operator -> () { count++; return(ptr); } private: unsigned count; Account* ptr; }; int main () { AccountPtr John(123456,640.75), Mary(555123,987.60); John->deposit(24.50); cout << John->balance() << endl; }