... (Nothing in here is missing a semicolon or has any errors)
private:
struct Node
{
Object *data; <--- Error for this line " error C2143: syntax error : missing ';' before '*'"
Node *next;
};
Node *head;
};
We were instructed to put the struct Node into the private area. However, the error is telling me that I need a semicolon before the * on data. I don't understand this error. And, the code for the struct was provided for this program so I'm confused on how it is wrong.