In my header file:
i have a method:
Code:entry.h entry *next; entry *getNext();
when I try to call the method in my cpp file
I get an error identifier not found.Code:entry entry::*getNext() { return next; }
What am I doing wrong.
In my header file:
i have a method:
Code:entry.h entry *next; entry *getNext();
when I try to call the method in my cpp file
I get an error identifier not found.Code:entry entry::*getNext() { return next; }
What am I doing wrong.
So where is your entry class declaration then?
Are your declarations in your header file even in a class?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
yes I have included my header file, I just provided the relevant inserts from my code.
entry* entry::getNext()
The * belongs next to the datatype, not somewhere else...
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.