// ATM Simulation - main programATM Simulation - main program
/*
* Example ATM simulation - file main.cc
*
* This file contains the main program for the ATM simulation
*
* Copyright (c) 1996 - Russell C. Bjork
*
*/
#include
#include "sysdep.h"
#include "bank.h"
#include "session.h"
#include "transaction.h"
#include "atmparts.h"
#include "atm.h"
#define ATM_NUMBER 42
#define ATM_LOCATION "GORDON COLLEGE"
// The heart of the simulation is the on-going interaction between these two
// global objects
ATM theATM(ATM_NUMBER, ATM_LOCATION);
Bank theBank;
main()
{
Money initialCash = theATM.startupOperation();
theATM.serviceCustomers(initialCash);
}
//