Joke 版 (精华区)

发信人: yefu (尽兴而醒,不枉一梦), 信区: Joke
标  题: Re: 一个女孩编的程序
发信站: 哈工大紫丁香 (Tue Mar 13 16:32:22 2007), 转信

咱们还是接几个好玩的吧

递归啊

private bool SeekBoy(Place place)
{
 Girl.arrive(Place);
 foreach(Boy b in Boys)
 {
   if(b.帅)
   {
    Girl.date(b);
    if(b.有钱)
    {
       do
        {
         Girl.love(b);
         b.钱--;
         }while(b.钱>0)
    }
    Girl.甩(b);
   }
 }
 
 
 if(Girl.Age>30)
 {
   Girl.Goto(HIT);
   Girl.Find(ManFatory.GetMan(工大博士))
   Girl.Marry(工大某博士);
   break;
 }
 Place anotherPlace=Application.GetAnotherPlace();
 Girl.SeekBoy(anotherPlace);
 Girl.Age++;
 
}

【 在 marvel (涛声依旧@test) 的大作中提到: 】
: 你先贡献一个吧


--
                                                                                
  ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓        
  ┃███████                                                    ┃        
  ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛        
                                                                                
                            剩余时间:约70年                                    


※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 222.35.185.153]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.016毫秒