can someone help, i have my prog running but the hold reel function won't work. this is the spin reel function.
game::play()
{
cout<<"Welcome to the Vegas Fruit Machine\n";
reel1.spin();
winningline[1] = reel1.getcurrsymbl();
reel2.spin();
winningline[2] = reel2.getcurrsymbl();
reel3.spin();
winningline[3] = reel3.getcurrsymbl();
cout<<"Reel 1 Reel 2 Reel 3"<<endl;
cout<<winningline[1]<<" "<<winningline[2]<<" "<<winningline[3]<<" "<<endl;
cout<<"After spin your credit is:- "<<credit<<endl;
credit--;
i have a hold reel variable set as a bool, and the player is asked whether they want to hold the reel. trouble is if answer is yes the reels will still spin. how can i program them to hold if the holdreel1 value is true, after asking the player and their answer is converted to a true or false answer.