Your
CountWords
and
ReadWords
functions are defined as members of your
Hangman
class but implemented in global space. The implementation must be:
unsigned int Hangman::CountWords(const char* FileName) {
}
void Hangman::ReadWords(const char* FileName, string* WordArray) {
}
Additionally, the implementation is located in the header file. You should move the code of these functions (and all other member functions) to a source file called
Hangman.cpp.