classes

I don't know what the error is.


./MemberType.h:23:5: error: missing return type for function 'Membertype'; did you mean the constructor name 'MemberType'?
Membertype(string,int,int,double);
^~~~~~~~~~
MemberType
1 error generated.
In file included from memberType.cpp:11:
./MemberType.h:23:5: error: missing return type for function 'Membertype'; did you mean the constructor name 'MemberType'?
Membertype(string,int,int,double);
^~~~~~~~~~
MemberType
memberType.cpp:23:13: error: out-of-line definition of 'MemberType' does not match any declaration in 'MemberType'
MemberType::MemberType(string name, int memberId, int booksBought, int amountSpent) {
^~~~~~~~~~
memberType.cpp:63:18: error: out-of-line definition of 'setAmountSpent' does not match any declaration in 'MemberType'
void MemberType::setAmountSpent(int amountSpent){
^~~~~~~~~~~~~~
Do you expect us to tell you what is wrong in your code without being able to see your code?

Please post your code using code tags - http://www.cplusplus.com/articles/jEywvCM9/
Last edited on
Topic archived. No new replies allowed.