JAVA
传说中规范的爱情代码(2010-11-10 21:37:36)
转载
标签:it
private final static DEPOSIT = 100000;
private final static FELLING = 8;
public void love(boy, girl) {
Boolean isMarried = false;
if(boy有房() &&boy有车()) {
doMarry(boy, girl);
isMarried = true;
} else if(girl愿意等()) {
while(!(boy赚钱 > DEPOSIT && girl感情 > FELLING)) {
for(int day=1; day <=365; day++) {
if( day == 情人节 ) {
if(boygivegirl(玫瑰)) {
girl感情++;
} else {
girl感情--;
}
}
if(day == girl生日) {
if( boygivegirl(玫瑰) )
{
girl感情++;
}
else {
girl感情--;
boy拼命赚钱();
}
}
}
if(boy有房() && boy有车()) {
doMarry(boy, girl);
isMarried = true;
break;
}
年龄++;
girl感情--;
}
}
if(!IsMarried) {
girlgoto(another_boy);
}
private void doMarry(boy, girl) {
boyset(nothing);
girl嫁给(boy);
}
欢迎分享,转载请注明来源:表白网
评论列表(0条)