感情函数
- Sunday, May 27, 2007, 19:54
- Uncategorized
- 1,006 views
- 5 comments
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);
}
Popularity: 13% [?]
5 Comments on “感情函数”
Write a Comment
Gravatars are small images that can show your personality. You can get your gravatar for free today!





…哪里来的? C语言么?
介意让我用你的idea写一个PHP版本么?
[Reply]
是转的,,期待你的PHP版本哦。。。
你的blog经常看,,早怀疑你是中国人。。。
现在确定了,呵呵
[Reply]
哈,有意思
[Reply]
穷光蛋找老婆该咋办
[Reply]
有意思
[Reply]