Why wont my counter work? Im using classes?
1 2 3 4
|
if(a<=20){ a+myDice.roll();}
cout<<a<<endl;
|
myDice.roll is apart of a class but my counter is staying at 0 each time i rerun it??
I think you should change a+myDice.roll(); to a += myDice.roll();
Topic archived. No new replies allowed.