I have this function name
void playOneGameOfCraps(bool& win, int& numRolls);
1.)How do I write this as a function call? It says I am shadowing a parameter.
2.)In my function if I "win" the game of craps it is
suppose to return true but how do I return it if it is a void function? ...and where do you return it to?
Same with lose = false, and number of rolls in that game. How does this work when there are only 2 parameters?
I am confused on how this works. Thanks for any help.
2007-03-09
08:03:39
·
4 answers
·
asked by
jnjn
2
in
Computers & Internet
➔ Programming & Design