Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctime>
- using namespace std;
- const SIDES = '';
- void getRounds();
- void rng();
- int main()
- {
- getRounds();
- }
- void getRounds()
- {
- cout << "How many sides of you die?(Valid 4, 6, 8, 10, 12) \n";
- cin << SIDES << "\n";
- switch(SIDES)
- {
- case '4' :
- case '6' :
- case '8' :
- case '10' :
- case '12' :
- cout << "Good choice" << endl;
- break;
- default :
- cout << "Can you not read? Try again mortal! \n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement