一个小男孩的故事

public class MyLoveStory
{
    public static void Main(string[] args)
    {
        //The ForeStory
        int result = 1;
        bool love = false;
        if(love)
            result = AtOneTime();
        
        //But Now...
        if(args[0] == "Has" && args[1] == "Third" && args[2]=="One")    
        {
            love = false;
            result = DoPart();
            Console.WriteLine(GetNowHeartState.ToString());
        }
    }
    
    internal enum HeartState
    {
        Sad,
        MoreSad    
    }
    
    internal enum LifeState
    {
        Nice,
        Poor,    
    }
    
    internal HeartState GetNowHeartState(LifeState girlLife)
    {
        if(gilrLife == LifeState.Poor)    
            return HeartState.Sad;
        else
            return HeartState.MoreSad;
    }
    
    internal static int AtOneTime()
    {
        return 1 + 1;    
    }
    
    internal static int DoPart()
    {
        return 2 - 1;    
    }
}
 
 
 
还有一个
result love(boy, girl)
{
     if( boy.有房() and boy.有车() )
     {
         boy.set(nothing);
         return girl.嫁给(boy);
     }
     if( girl.愿意等() )
     {
     while(!(boy.赚钱 > 100,000 and girl.感情 > 8 ) )
     {
         for( day=1; day <=365; day++)
         {
             if( day == 情人节 )
             if( boy.givegirl(玫瑰) )
                 girl.感情++;
             else
                 girl.感情--;  
             if( day == girl.生日 )
             if( boy.givegirl(玫瑰) )
             {
                 girl.感情++;
             else
                 girl.感情--;
                 boy.拼命赚钱();
             }
         }
         if( boy.有房() and boy.有车() )
         {
             boy.set(nothing);
             return girl.嫁给(boy);
         }
         年龄++;
         girl.感情--;
     }
     return girl.goto( another_boy);
}  


 

你可能感兴趣的:(一个小男孩的故事)