1 Attachment(s)
[RESOLVED] weird warning?
I get this warning:
Attachment 34803
MY CODE:
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);
};
I'm still kinda a beginner and I've seen this warning before in other programs, although it went away eventually.