新西兰天维网社区

标题: 一个女IT用C写的爱情函数 [打印本页]

作者: OFans    时间: 2010-7-22 10:36:52     标题: 一个女IT用C写的爱情函数


result love(boy, girl)
   
  
{
   
    if ( boy.有房() and boy.有车
() )
   
    
{
   
      
boy.set(nothing);
   
      return girl.嫁给
(boy);
   
    
}
   
    else 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( girl.耐心 == 0 && girl.有其它追求者
)
   
         
{
   
           
girl.goto( another_boy);
   
            boy.郁闷中
();
   
            boy.天天到skykiwi论坛- 上班族灌水
();
   
            return 没有结果
;
   
 
 
}
   
       
}
   
      
}
   
      
try
   
      
{
   
        girl.要男友买房
();
   
        girl.要男友买车
();
   
        girl.每天逛专卖店
();
   
        if ( boy.有房() && boy.有车
() )
   
       
{
   
          girl.去澳洲旅游
(boy);
   
          girl.到新西兰蛤蟆屯结婚
(boy);
   
          girl.嫁给
(boy);
   
          boy.没日没夜挣钱
();
   
       
}
   
      
}
   
      
catch()
   
      
{
   
       
girl.byebye(boy);
   
        boy.郁闷中
();
   
        boy.天天到skykiwi论坛 -上班族灌水
();
   
        return girl.broadcast(“这个男人真小气
“);
   
      
}
   
      return girl.每天逛专卖店
();
   
    
}
   
    
return girl.goto( another_boy);
   
  }

作者: 武夫的眉笔    时间: 2010-7-22 11:00:09

怎么能够运行一下?
作者: 红烧小花猫    时间: 2010-7-22 11:01:10

variable: (是不是还要加上童男童女,熟男熟女?)
boy != man
girl != women
作者: 某人的马甲    时间: 2010-7-22 11:10:32

召唤java, .net, ruby, sql, php, javascript版
作者: stefani    时间: 2010-7-22 11:12:22

提示: 作者被禁止或删除 内容自动屏蔽
作者: 电影2006    时间: 2010-7-22 11:25:07

哈哈,挺有意思的,看懂了
作者: freehold    时间: 2010-7-22 13:34:19

这个由趣,顶专业幽默贴.
作者: 雁阵惊寒    时间: 2010-7-22 13:38:31

哈哈哈哈哈好好玩。。。。。。太有才了
作者: 天维IT    时间: 2010-7-22 13:41:21

提示: 作者被禁止或删除 内容自动屏蔽
作者: Go2Piha    时间: 2010-7-22 14:14:22

牛,真是牛!!!
作者: 尸城青鬼    时间: 2010-7-22 15:14:19

我来个 c#.net的
private bool IsTrueLove(Boy thisBoy, Girl thisGirl){
        if ( thisBoy.HasHouse() && thisBoy.HasCar()){          
          return thisGirl.MarryTo(thisBoy);
        } else if ( thisGirl.IsWillingToWait() ){
          while( ! (thisBoy.AnnualIncome() > 100000 && thisGirl.Susceptibility> 8){
            for (int day = 1; day <= 365; day++){
              if ( day == Holiday.Valentine.DayOfYear ){
                if ( thisBoy.GiveGirl(rose))
                  thisGirl.Susceptibility++;
                else
                  thisGirl.Susceptibility--;
                                                }
              if( day == thisGirl.Birthday.DayOfYear ){
                if ( thisBoy.givegirl(rose) )
                  thisGirl.Susceptibility++;
                else
                  girl.Susceptibility--;
                                                }
              thisBoy.MakeMoney();
              if( thisGirl.Susceptibility == 0 & thisGirl.AnotherOption()) {
                thisGirl.GotoAnotherBoy();
                thisBoy.Dismay = true;
                thisBoy.FlushingThread(@"bbs.skykiwi.co.nz");
                return false;
                                                }     
            }
          }
          try{
            thisGirl.RequireHouse(thisBoy);
            thisGirl.RequireCar(thisBoy);
            thisGirl.GoShopping() = thisBoy.CanAfford();
            if ( thisBoy.PossessHouse() && thisBoy.PossessCare()){
              thisGirl.GoVacation(Austrilia, thisBoy);
              thisGirl.MarryTo(NewZealand.FrogVillage, thisBoy);             
              thisBoy.RelentlesslyMakingMoney();
            }
          }
          catch{
            thisGirl.ByeBye(thisBoy);
            thisBoy.Dismay = true;
            thisBoy.FlushingThread(@"bbs.skykiwi.co.nz");
                                        thisGirl.Broadcast(thisBoy.Name + " is a cheapskate and no worth dating.");
            return false;
                 }
                                return true;
                        }
      }
作者: OFans    时间: 2010-7-22 15:25:44

Hamilton = 蛤蟆屯 = FrogVillage....
作者: 武夫的眉笔    时间: 2010-7-22 15:29:06

你们不要只是自娱自乐,贴个应用给我运行一下
作者: 尸城青鬼    时间: 2010-7-22 15:36:58

Hamilton = 蛤蟆屯 = FrogVillage....
OFans 发表于 2010-7-22 15:25
哈哈,蛤蟆屯不错
作者: broomfields    时间: 2010-7-22 16:22:31

潜水N年,这贴不顶没天理.
作者: variable    时间: 2010-7-22 17:21:08

本帖最后由 variable 于 2010-7-22 17:24 编辑

men_on_earth.html

$().ready(function()
  {
    $('.rich_guy').each(function()
     {
         $(this).html($(this).html()+' is mine, and welcome to my bed');
     });         
     $(':not(.rich_guy)').each(function()
     {
         $(this).html($(this).html()+' fuck off');
     });
  }
)
作者: 好事之徒    时间: 2010-7-22 19:17:07

这哪是C 啊 明显就是某种面向对象的还能支持Unicode的爱情
作者: noever    时间: 2010-7-22 19:48:42

冒个泡。。有意思。。。
作者: GongIsMine    时间: 2010-7-22 21:47:05

提示: 作者被禁止或删除 内容自动屏蔽
作者: 零落成泥碾作尘    时间: 2010-7-22 22:10:15

强贴留名。。。。。。。。。。。。。。。
作者: 光芒    时间: 2010-7-22 22:34:58

看来我们这些不是IT专业的也就凑个热闹。。。。。。
作者: 光芒    时间: 2010-7-22 22:35:33

你们不要只是自娱自乐,贴个应用给我运行一下
武夫的眉笔 发表于 2010-7-22 15:29


眉笔,看来咱俩都不知道笑点在哪儿。。。。。。
作者: Lilac    时间: 2010-7-22 22:42:02

顶下~~~
作者: ceci-bi    时间: 2010-7-22 23:04:43

5楼的。 哈哈哈哈。 有才。
作者: 梦的四叶草    时间: 2010-7-23 11:29:54

不会这个,没看懂~~~
作者: OFans    时间: 2010-7-23 11:40:29

9# 天维IT


SomeOne.get(girl);
{                                      boy.Skykiwi.FMLife.BULLSHITING();0 O; T& k% C( ^! E5 |) n
                                        boy.Get_Warning();' S* b0 i  U: Y: P/ y
                                        boy.SkykiwiID.Disabled;4 y/ {( L4 n: s/ u% G
                                        $_COOKIE.clear();8 X) a; q+ C# v' u0 T" b# z
                                        boy.SkykiwiID.disappear;6 i6 o7 S' R8 z  M2 E8 l$ ~
                                        boy.InternetExplorer.Crash;
                                       boy.Windows.BlueScreen;
                                       boy.setStatus(CRAZY_AND_BLUE);
。。。。。。





9楼亮了,

求 skykiwi 源码。。。。
作者: LeetheFIRST    时间: 2010-7-23 12:26:48

LZ的不是C吧。。。




欢迎光临 新西兰天维网社区 (http://bbs.skykiwi.com/) Powered by Discuz! X2