These are my class functions for the header file :
public:
hunter(string aSpecies); // create a hunter of the given species
void recordKills(string kill); // add a new kill to the end of the hunter's list of kills
string *theKills(); // return a pointer to the array of all kills by this hunter
int numberOfKills(); // how many kills have been recorded
and class variables:
private:
string kill;
int numberkilled;
string kills[20];
I am not sure on how to handle "string *theKills()"
I have tried doing it in this way:
string hunter::*theKills(){
pointer = kills;
return pointer;
}
as with the * it doesn't recognise kills
as a part of my class variable, but we are supposed to use the same function names.