"/>

bank - #include #include #include #include "classes.h"...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
#include "classes.h" #include <iostream> #include <fstream> #include <queue> class CAbstractBank { public: // Default constructor CAbstractBank() : fNumCustomers (0), fTotalWaitingTime (0) { fClock = new CClock; fLine = new queue <CCustomer*>; fCurOutsideCustomer = new CCustomer; } // Virtual destructor virtual ~CAbstractBank() { delete fClock; delete fLine; } CAbstractBank(const CAbstractBank&) {} // Copy constructor CAbstractBank& operator=(const CAbstractBank bank) { if (this != &bank) {} return *this;} // Overloaded assignment operator virtual void Run () = 0; protected: CCustomer* GetNextCustomer (ifstream& inFile, CTeller *fTeller); void ProcessArrivingCustomer (ofstream& outFile); void ProcessWaitingCustomer (ofstream& outFile); void ProcessDepartingCustomer (ofstream& outFile, CCustomer *fCurServedCustomer); CCustomer* fCurOutsideCustomer; CCustomer* fCurFrontOfQCustomer; CClock* fClock; queue <CCustomer*> *fLine; long fNumCustomers; long fTotalWaitingTime; }; class CBank : public CAbstractBank
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/17/2012 for the course CSC 1254 taught by Professor Blanks,l during the Fall '08 term at LSU.

Page1 / 2

bank - #include #include #include #include "classes.h"...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online