/////// File: Account.C /////// #include #include #include "Account.h" Account::Account(unsigned id, double amt, char* s) : acct_no (id), acct_bal(amt) { strncpy(ss, s, SS_LEN); } double Account::balance() { return(acct_bal); } void Account::deposit(double amt) { acct_bal += amt; } int Account::withdraw(double amt) { if( amt > acct_bal ) return(-1); // failure acct_bal -= amt; return(0); }