bank - void Run (); private: CCustomer* GetNextCustomer...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include "classes.h" #include <fstream> #include <queue> class CBank { public: // Default constructor CBank() : fNumCustomers (0), fTotalWaitingTime (0) { fClock = new CClock; fLine = new queue <CCustomer*>; fTeller = new CTeller(fClock); fCurOutsideCustomer = new CCustomer; } virtual ~CBank() {} // Virtual destructor CBank(const CBank&) {} // Copy constructor CBank& operator=(const CBank bank) { if (this != &bank) {} return *this;} // Overloaded assignment operator
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: void Run (); private: CCustomer* GetNextCustomer (ifstream&amp; inFile); void ProcessArrivingCustomer (ofstream&amp; outFile); void ProcessWaitingCustomer (ofstream&amp; outFile); void ProcessDepartingCustomer (ofstream&amp; outFile); CCustomer* fCurOutsideCustomer; CCustomer* fCurFrontOfQCustomer; CCustomer* fCurServedCustomer; CTeller* fTeller; CClock* fClock; queue &lt;CCustomer*&gt; *fLine; long fNumCustomers; long fTotalWaitingTime; };...
View Full Document

Ask a homework question - tutors are online