SHARE
TWEET

Untitled

a guest Apr 21st, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <ctime>
  3. using namespace std;
  4.  
  5. const SIDES = '';
  6.  
  7. void getRounds();
  8. void rng();
  9.  
  10. int main()
  11. {
  12.     getRounds();
  13. }
  14. void getRounds()
  15. {
  16.     cout << "How many sides of you die?(Valid 4, 6, 8, 10, 12) \n";
  17.     cin << SIDES << "\n";
  18.  
  19.    switch(SIDES)
  20. {
  21.     case '4' :
  22.     case '6' :
  23.     case '8' :
  24.     case '10' :
  25.     case '12' :
  26.     cout << "Good choice" << endl;
  27.     break;
  28.     default :
  29.     cout << "Can you not read? Try again mortal! \n";
  30.    }
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top