I need to pass the value of a pointer from one function to another.
I have it set up like this...
void GetTheMoney();
void FigureTheWinnings(int *, int &BetAmount);
void GetTheMoney()
{
int BetAmount, *BetAmt_ptr = &BetAmount;
cout << "\nEnter the amount you wish to bet.";
cin >>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.