For an assignment I\'m required to create a game using die rolls that uses multiple classes. For Dice.cpp I i wrote a function that just gets a random die roll from
Dice.cpp
You need to either create an instance of Dice to call the method on like this
Dice
Dice d; roll = d.getRoll();
or you need to make getRoll static. In the function declaration in Dice.h you'd put
static int getRoll();
and you would use it like this
roll = Dice::getRoll();