10 years, 10 months ago.

error message

I have an error in my program. The description of the error is " not a class or structure name". what does that mean? I'll be honest with you. I have a little background about c++ programming. May be one of you can help me! . thanks

It helps when you publish the code. The error message means just what it says, the compiler found a construct in which it expects a class name but the identifier is not the name of a class. An example could be

class a { int i;} *obj;

obj.i  = 1;// here the compiler expects obj to be a classname, it is however a pointer name
posted by Ad van der Weiden 09 Jul 2013
Be the first to answer this question.