Search results

  1. V

    Is there a way to use a class member in a function in C++?

    This is my function: void load(int *money, int *exp) { int mon, xp; ifstream savefile("save.txt"); if (savefile.good()) { savefile >> player.maxhp; savefile >> player.maxmp; savefile >> player.atk; savefile >> player.def; savefile >>...
Back
Top