i created this class:
I am then using it in this line:
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!!!!!!