I'm getting this error message with the code below:
class Money {
public:
Money(float amount, int moneyType);
string asString(bool shortVersion=true);
private:
float amount;
int moneyType;
};
First I thought that default parameters are not allowed as a first parameter in C++ but it is allowed.