I'm trying to construct a semi simple dice rolling project. I have two classes, onedie and threedice. The threedice class looks like this:
class threedice
{
public:
void rollem();
int getsumFaces();
private:
onedie die1;
onedie die2;
onedie die3;
};
Now, when I try to code the two functions rollem and getsumFaces, I don't know how to write those functions to add the three results from onedie. I've made a couple of attempts that give me nothing but a string of errors. Any example I can adapt will do, thank you in advance