I will offer ye' one method:
first.. create pair of dice:
Code:
struct PairOfDice
{
int dice_1;
int dice_2;
}
let's prototype a dice roll function that will handle this new 'PairOfDice' data type..
Code:
PairOfDice* roll_the_dice(PairOfDice &DiceStruct) ;
in your int main( ) function, declare an object of type PairOfDice:
Code:
PairOfDice *myDice ;
then, when you are ready.. roll the dice..!
Code:
myDice = roll_the_dice(myDice) ;
and now you have.. a pair o' dice
Code:
cout << "Roll 1 is: " << myDice->dice_1 ;
cout << "Roll 2 is: " << myDice->dice_2 ;
Now.. all you have to do is write up the function definition.. not too hard.. just randomly set the two attributes of the 'PairOfDice' object.
OOP goodness