Question: This is the craps game and the code is in c++ So I'm getting this infinite loop and my program wont print out win or

This is the craps game and the code is in c++

So I'm getting this infinite loop and my program wont print out win or lose.

This is the craps game and the code is in c++ So

1 #inc tude #include 3 using namespace std; 4 5 int rollDice(int roll_1); 7 int main( srand (time (0)); int roll1; int roll 2; rollDice( (roll_1)); 10 12 13 15 if(roll-1 == 711 roll-1 = 11) 16 17 18 else if (roll-1-2 II roll-1=3 II roll-1=12) 19 20 21 else cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!