Here is the code that I've written. It would be used to add an object of class Character. The only argument passed is a pointer(Character *newCharacter) to the character class object. I've declared Character *head in the private of CharacterList. When I run this code the compiler gives me an error in while, else and if loop saying: class "Character" has no member next. can anyone elp me please?