Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int ActionGenerator() {
- bool Verify;
- int Action;
- Verify = true;
- while(Verify){
- cout << "nSELECIONE UMA ACTION: " << endl;
- cout << "[1 = ActionX]n[2 = ActionZ]" << endl;
- cin >> Action;
- if (Action == 1 || Action == 2){
- return Action;
- Verify = false;
- }else {
- cout << "nACTION INVALIDA !" << endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement