I want my program to tell me the number of TIMES defined in class Dice:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
class Dice
{
public:
staticconstint TIMES = 10;
int roll(int TIMES);
};
int main()
{
Dice game;
game.roll(int TIMES);
}
int Dice::roll(int TIMES)
{
cout << "The number TIMES is: " << TIMES;
}