Hi everyone, I'm new to C and have been given a C program to complete but found it includes many versions of the titled error for each class file.
Can anyone please explain why it occurs and how I could get rid of them?
Thanks,
Cleo
q2.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘spellChecker’
Example of a class:
class spellChecker {
protected:
struct wordRecord* wordList;
public:
spellChecker() {
wordList=NULL;
}
};