I get this warning:
c++ issue.jpg
MY CODE:
I'm still kinda a beginner and I've seen this warning before in other programs, although it went away eventually.Code:class PlayerClass{ public: int ReturnName(){ return Name; } int ReturnLastName(){ return lastName; } int ReturnStamina(){ return Stamina; } int ReturnHealth(){ return Health; } int ReturnDistance(){ return StartdistancefromCamp; } int randVal(int min,int max){ return (rand() % (max - min + 1) + min); } private: int const Name = randVal(0,1); int const lastName = randVal(0,1); int const Stamina = randVal(3,10); int Health = randVal(50,100); int StartdistancefromCamp=50,PlayerDecision; int MobSelect = randVal(0,2); };




Reply With Quote
