蓝烟儿编的c++语言程序 -- ZT

蓝烟编的c++语言程序

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
{-

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); ...

所有跟帖: 

谁能理解的讲讲结果怎样, 成了没? -Hazelnut- 给 Hazelnut 发送悄悄话 (0 bytes) () 09/19/2006 postreply 12:13:43

成了没是要看男的是否有房,有车等前提条件. -色大胆小- 给 色大胆小 发送悄悄话 色大胆小 的博客首页 (0 bytes) () 09/19/2006 postreply 12:15:37

my brain go blank when I see things like this -noso- 给 noso 发送悄悄话 noso 的博客首页 (0 bytes) () 09/19/2006 postreply 12:17:23

那假如男的有车有房,没有腿呢? -Hazelnut- 给 Hazelnut 发送悄悄话 (0 bytes) () 09/19/2006 postreply 12:17:26

啥都有多好......估计得让探子多给加一个 Condition -色大胆小- 给 色大胆小 发送悄悄话 色大胆小 的博客首页 (0 bytes) () 09/19/2006 postreply 12:28:58

错了,这是正确的 -没敌神探- 给 没敌神探 发送悄悄话 没敌神探 的博客首页 (843 bytes) () 09/19/2006 postreply 12:17:17

写程序那么快啊?早知道当初偶也学学 -Hazelnut- 给 Hazelnut 发送悄悄话 (0 bytes) () 09/19/2006 postreply 12:18:25

Hazelnut ask what if he has no leg (which leg I don't know) -色大胆小- 给 色大胆小 发送悄悄话 色大胆小 的博客首页 (0 bytes) () 09/19/2006 postreply 12:30:17

the 3rd -没敌神探- 给 没敌神探 发送悄悄话 没敌神探 的博客首页 (0 bytes) () 09/19/2006 postreply 12:36:19

I knew you would guess that, 嘿嘿 -色大胆小- 给 色大胆小 发送悄悄话 色大胆小 的博客首页 (0 bytes) () 09/19/2006 postreply 12:38:48

请您先登陆,再发跟帖!