Advertisement
luwna30

Untitled

Nov 22nd, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. #include <iomanip>
  2. #include <iostream>
  3. #include <cmath>
  4. #include <cstdlib>
  5.  
  6. using namespace std;
  7.  
  8.  
  9. //===========================================================================
  10. //===========================================================================
  11.  
  12. // Définissez ici votre structure
  13.  
  14. struct JackPot { float credit; float mise; float gain; int roue; };
  15.  
  16. {
  17. int roue[3] = 0;
  18. float credit = 100;
  19. float mise;
  20. float gain;
  21. int tirage[100][3] = 0;
  22. }
  23.  
  24.  
  25.  
  26. void mise_joueur ( float credit, float mise; )
  27. {
  28. cout<<"Entrer la valeur de votre mise: "<<endl;
  29. cin>>mise
  30.  
  31. credit -= mise;
  32.  
  33.  
  34.  
  35. if (mise>credit)
  36. {
  37. mise = credit;
  38. mise -= credit; // argent qui reste au joueur
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement