Total Pageviews

Google Ads

Monday, September 24, 2012

Code of the life

Code of my student life
Today, it's going to return but success == false and Life.Experience till be null.....

   
 void LiveInYoungAge()  
 {  
      Life myLife = new StudentLife();  
      boolean success = false;  
      Job myJob = null;  
      while(true)  
      {  
           try  
           {  
                Idea myIdea = GetCrazyThinking();  
                myJob = TryMyBest(myIdea);  
                if(myJob.IsSuccess)  
                {  
                     break;  
                }  
           }  
           catch(Failure f)  
           {  
                Life.Experience.Add(f);  
           }  
      }  
   
      Friend myFriend = new Friend();  
      List<Friend> TeamMembers = myFriend.GetFriend(Life);  
      Team myTeam = new Team(TeamMembers);  
      myTeam.AddJob(myJob);  
      if(myLife.Age > Life.StudentAgeRange.Top)  
           return;  
      LiveInYoungAge();  
 }  
   

No comments:

Post a Comment