Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement