ok here is the code
and here is the error I keep recievingCode:#include <iostream.h> #include <iomanip.h> class Savings { private: float balance; float rate; float interest; public: Savings(float=0,float=0, float=0); //constructor function with defaults intearned(float,float, float); //member function to copy car info void showearn(void); }; //implementation section Savings::intearned(float bal, float rte, float intrst) { balance=bal; rate=rte; interest=intrst; } void Savings::showearn(void) { cout<<"The earnings are"; cout<< setfill('0') <<setw(2) << "the rate of" << rate <<setw(2) << "has earned" << interest <<setw(2) << "the balance is now"<< balance ; cout<<endl; return; } int main() { Savings a, c(6, 500, 1200); cout<<endl; a.showearn(); c.showearn(); cout<<endl; return 0; }
and I quote"unresolved external symbol "public: __thiscall Savings::Savings(float,float,float)" (??0Savings@@QAE@MMM@Z)
please helllllllp meeeeee!!!!



LinkBack URL
About LinkBacks


