i created this class:
class Surgery
{
public:
double cost();
};
I am then using it in this line:
patientList[index].addCharges(Surgery.cost());
but I get this error:
g:\hospital\hospital.cpp(22) : error C2275: 'Surgery' : illegal use of this type as an expression
What is the problem? I have spent hours and dont see the problem!!!!!!