1) The undefined reference is because you are not linking to SaveData.cpp. Which IDE are you using (Visual studio, etc)?
2) 'retreive' should be spelled 'retrieve'.
3) you seem to still be using the 5th element (element 4), when it is not valid.
4) it seems to work just fine when you change
void outputSavedata (int* stats); to void outputSavedata (int stats[4]);
Reputation Points: 437
Solved Threads: 204
Posting Virtuoso
Offline 1,968 posts
since Feb 2008