jexiar

StudyInUniversity

Nov 24th, 2011
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. public void StudyInUniversity () {
  2.     for (int Year = 17; Year <= 22; Year++) {
  3. term:       while (CurrentDate < ExamDate) {
  4.             me.DoNothing ();
  5.         }
  6.         me.IsNeardy = true;
  7.         me.HitTheBooks ();
  8. exam:       try {
  9.             me.PassExamination ()
  10.         }
  11.         catch (int Mark) {
  12.             switch (Mark) {
  13.                 case 2 : goto exam; break;
  14.                 case 5 : me.PokerFace ();
  15.                 default : me.FeelHappy ();
  16.             }
  17.         }
  18.     }
  19.     return;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment