Error “C++ requires a type specifier for all declarations whilst defining methods”

you declared it as void but you forgot to put it in the definition. should be:

void StringList::PrintWords()

Leave a Comment