[消遣]Love Functions

Version 1 (ZZ)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
result love(boy, girl) 
{ 
    if ( boy.有房() and boy.有车() ) { 
        boy.set(nothing); 
        return girl.嫁给(boy); 
    } else if (girl.愿意等()) { 
        while( ! (boy.赚钱 > 1e6 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(nother_boy); 
                    boy.郁闷中(); 
                    boy.天天到BYR灌水(); 
                    return 没有结果; 
                } 
            } 
        }
        try 
        { 
            girl.要男友买房(); 
            girl.要男友买车(); 
            girl.每天逛专卖店(); 
            if ( boy.有房() && boy.有车() ) { 
                girl.去澳洲旅游(boy); 
                girl.到英国威斯敏斯结婚(boy); 
                girl.嫁给(boy); 
                boy.没日没夜挣钱(); 
            } 
        } catch() { 
            girl.byebye(boy); 
            boy.郁闷中(); 
            boy.天天到天涯灌水(); 
            return girl.broadcast("这个男人真小气"); 
        } 
        return girl.每天逛专卖店(); 
    } 
    return girl.goto(another_boy); 
}

Version 2 (By wks)

1
2
3
4
5
6
7
8
9
10
void love(Man &m, Woman &w) { 
     try { 
         while(w.isFuckable()) { 
         doSomething(things[rand()%((sizeof(things))/(sizeof(things[0])))]); 
         wait(); 
        } 
    } catch (CanWaitNoLongerException e) { 
    } 
    m.fuck(w); 
}

Version 3 (By me)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
void Man::love() { 
    try { 
        while(m.alive() && (!m.hasHouse() || !m.hasCar())) { 
            m.makeMoney();  // good luck if this is not a infinite loop... 
        } 
        Woman w *; 
        while(w = findMM())  // good luck if this do not block forever... 
        { 
            if (w->isLove(*this) && w->getParents().isLike(*this) 
                && w->getParents().getParents().isLike(*this) 
                && ...)    
                marry(w); 
            else continue; 
        } 
    } catch (房子又涨价了Exception  & e) { 
        letItBe(); 
    } catch (遇到宋思明了Exception  & e) {  
        letItBe(); 
    } catch (被炒鱿鱼了Exception & e) { 
        letItBe(); 
    } catch (家命难违Exception & e) { 
        letItBe(); 
    ...... 
    } finally { 
        mayGodSaveMe(); 
    } 
}
本文永久链接:http://jackaldire.com/201001/love-function/
转载前请先阅读:版权声明

Related Post


  1. linux 说:

    ;-)
    同是linuxer 可以交换个连接吗?

    JackalDire 回复:

    本人Linux小菜… , 链接已添加 ^_^

Leave a Reply