Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. int ActionGenerator() {
  2.  
  3. bool Verify;
  4. int Action;
  5. Verify = true;
  6.  
  7. while(Verify){
  8. cout << "nSELECIONE UMA ACTION: " << endl;
  9. cout << "[1 = ActionX]n[2 = ActionZ]" << endl;
  10. cin >> Action;
  11.  
  12. if (Action == 1 || Action == 2){
  13. return Action;
  14. Verify = false;
  15.  
  16. }else {
  17. cout << "nACTION INVALIDA !" << endl;
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement