compiler error: unexpected constructor, destructor, or type conversion...
I've been working on writing a program for school literally all day and I'm getting one error when I try to compile it that I can't figure out. The error I'm getting is "error: expected constructor, destructor, or type conversion before '*' token" and it points me to the top line of this code:
anyone know what this means? thank you in advance.
Thing * ClassName::getThing( const OtherThing & ot )
also, as a quick side-question, in that very function I want to return null. Can I just write "return 0" or should I write "return NULL"? Is there a difference? Or, should I make a variable that's a pointer to a Thing and then just set it to zero and return that?