#include "stdstuff.h" #include "customerDB.h" // add a new customer to the database; returns true if successful, false otherwise // (database full or customer already exists) bool addCustomer(int id, double total, customerDB &db) { if(db.numCusts==MAXCUST) return false; // database is full for(int i=0;imaxtotal) maxtotal=db.ci[i].total; } return maxtotal; }