I'm doing the exercised from the book Teach Yourself C++ in 21 Days and in one of the exercises I get error: invalid use of non-static member function 'void myClass::ShowMember()'
I got the code straight form the book after failing to resolve the issue in the program that I wrote, but I still get the same error. Here's the code:
Does anyone have any idea why I get this error? Does it have to do with the compiler maybe? I'm using Ubuntu Linux 10.04 and GNU compiler, but I tried to run this program using Dev C++ and get the same error message.