会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
代码改变世界
Cnblogs
Dashboard
Login
Home
Contact
Gallery
Subscribe
RSS
胖子的小屋
<font color=red>注:技术类文章,如无特殊说明,均为原创,转载请注明出处,谢谢!</font><a rel="nofollow noopener" href="http://sighttp.qq.com/cgi-bin/check?sigkey=9a957ab62cd923e549e6ed32b3cf259dcfe16ac2c72616e546eddceb62e41116"; target=_blank; onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=9a957ab62cd923e549e6ed32b3cf259dcfe16ac2c72616e546eddceb62e41116';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"><img border="0" SRC='http://wpa.qq.com/pa?p=1:21814071:14' alt="胖子" title="有可能隐身"></a>
程序员的爱情(C#版)
2005-03-01 14:51
胖子
阅读(
803
) 评论(
2
)
编辑
收藏
举报
using
Life;
using
Life.Love;
namespace
love
{
/**/
///
<summary>
///
love 的摘要说明。
///
</summary>
public
class
love : Life.Love
{
void
love(boy, girl)
{
if
( boy.有房()
&&
boy.有车() )
{
boy.Set(Nothing);
return
girl.嫁给(boy);
}
else
if
( girl.愿意等() )
{
next_year:
for
( day
=
1
; day
<=
365
; day
++
)
{
if
( day
==
情人节 )
if
( boy.GiveGirl(玫瑰) )
girl.感情
++
;
else
girl.感情
--
;
if
( day
==
girl.生日)
if
( boy.GiveGirl(玫瑰) )
girl.感情
++
;
else
girl.感情
--
;
boy.拼命赚钱();
}
年龄
++
;
girl.感情
--
;
if
( boy.有房()
&&
boy.有车() )
{
boy.Set(Nothing);
return
girl.嫁给(boy);
}
else
if
( boy.赚钱
>
100
,
000
&&
girl.感情
>
8
)
goto
next_year;
else
return
girl.
goto
( another_boy);
}
return
girl.
goto
( another_boy);
}
}
}
会员力量,点亮园子希望
刷新页面
返回顶部
About