#ifndef CUSTOMER_H #define CUSTOMER_BUILDDLL #define RCPOINTER_BUILDDLL #define DARRAY_BUILDDLL #include "customer.h" #endif #include Customer::Customer(const string &name,Rating rating,const double &balance) :_name(name),_rating(rating),_balance(balance){} void Customer::getTabString(char *buff)const { ostrstream out(buff,255); out.precision(2); // two place accuracy on output out.setf(ios::fixed);// fixed point notation out<<_name<<'\t'; if (_rating == GOOD) out<<"Good"; else out<<"Bad"; out<<'\t'<<_balance<<'\0'; } void Customer::balanceString(char *buff)const { ostrstream out(buff,255);; out.precision(2); // two place accuracy on output out.setf(ios::fixed);// fixed point notation out<<_balance<<'\0'; } int Customer::operator ==(const Customer &c)const { return c._name == _name; } string CustList::getDeleteName()const { return _deleted->name(); } void CustList::deleteAt( int w) { _deleted = sub(w); deleteItemAt(w); _where = w; }