Hey,
Im slightly confused with an error i have been getting, and have tried all sorts but to no avail, here is most of the error:
This is line 15 of Test2.cpp:Code:Test2.cpp:15: error: no matching function for call to ‘MobileAccount::MobileAccount(MobileNumber, const char [6])’ MobileAccount.h:20: note: candidates are: MobileAccount::MobileAccount(MobileNumber&, const std::string&) MobileAccount.h:13: note: MobileAccount::MobileAccount(const MobileAccount&)
and this is line 20 of MobileAccount.h:Code:MobileAccount kevin(MobileNumber(),"Kevin");
Line 13 of MobileAccount.hCode:MobileAccount(MobileNumber & rnum, const string & rname);
Any idea whats going on? Thanks in advance.Code:class MobileAccount{




Reply With Quote