![二师兄目前处于离线状态](https://user.hlgnet.com/face/Image1.gif) |
等 级:资深长老 |
经 验 值:8720 |
魅 力 值:364 |
龙 币:6495 |
积 分:5618.5 |
注册日期:2003-03-24 |
|
|
|
哪位帮忙解释一下这段程序代码?
#include "stdio.h"
#include "stdlib.h"
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);
}
![](https://bbs.hlgnet.com/mote/0-4.gif) ![](https://bbs.hlgnet.com/mote/0-4.gif) ![](https://bbs.hlgnet.com/mote/0-4.gif) ![](https://bbs.hlgnet.com/mote/0-4.gif) ![](https://bbs.hlgnet.com/mote/0-4.gif) ![](https://bbs.hlgnet.com/mote/0-4.gif) ![](https://bbs.hlgnet.com/mote/0-4.gif) ![](https://bbs.hlgnet.com/mote/0-4.gif)
|
|
--
|
|
|