祝孩子们天天健康快乐!
标题:
一个女生写的c语言程序(转)
[打印本页]
作者:
壮壮
时间:
2005-2-16 14:01
标题:
一个女生写的c语言程序(转)
<img src="http://club.soofan.com/images/newface/face1.gif" border="0" onclick="javascript:window.open(this.src);" alt= style="CURSOR: pointer" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" /> 一个女生写的c语言程序,今天晚上回家后坐在被窝里,上着网看一些技术资料,无意中找到了一个女生写的C语言程序如下:<font color="#990000">
以下是代码片段:
Dear all: result love(boy, girl) {- <font color="blue">if ( boy.有房() <font color="blue">and boy.有车() ) {- boy.<font color="blue">set(<font color="blue">nothing); return girl.嫁给(boy); } <font color="blue">if ( girl.愿意等() ) {- <font color="blue">while( ! (boy.赚钱 > 100,000 <font color="blue">and girl.感情 > 8 ) {- <font color="blue">for ( <font color="red">day=1; <font color="red">day <=365; <font color="red">day++) {- <font color="blue">if ( <font color="red">day == 情人节 ) <font color="blue">if ( boy.givegirl(玫瑰) ) girl.感情++; <font color="blue">else girl.感情--; <font color="blue">if( <font color="red">day == girl.生日) <font color="blue">if ( boy.givegirl(玫瑰) ) girl.感情++; <font color="blue">else girl.感情--; boy.拼命赚钱(); } } <font color="blue">if ( boy.有房() <font color="blue">and boy.有车() ) {- boy.<font color="blue">set(<font color="blue">nothing); return girl.嫁给(boy); } 年龄++; girl.感情--; } return girl.goto( another_boy);女生程序写得不错嘛,但是估计运行起来有困难,运行起来估计会像是个病毒,占用CPU 资源100%,死机。这个程序的逻辑结构精辟!!我很喜欢!这女生真高明,还好现在会C语言程序的女生不多,不然,中国的光棍会有更大的突破。呵呵<img src="http://bbs.soofan.com/soofan_Upload/userpic/20051279202781160.jpg" border="0" onclick="javascript:window.open(this.src);" alt= style="CURSOR: pointer" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;" />
作者:
jerryhai
时间:
2005-2-17 01:02
为了不死机,还是不试了。
作者:
yzly
时间:
2005-2-21 16:04
真让我这个程序员汗颜啊,学习ing。呵呵
作者:
逸飞
时间:
2005-2-21 20:30
jerryhai+-->引用:jerryhai 为了不死机,还是不试了。
看来huxu还是写程序的?
欢迎光临 祝孩子们天天健康快乐! (http://www.xetjy.com/)
Powered by Discuz! X3.2