麵麵出院了,也開始上班了~


可是呢?


先前STU吃到飽一族,可能就此銷聲匿跡了~


早上Unicorn傳來VB .Net的吃到飽一族虛擬碼。。


我改成java版,順道可以run(先不管結果)....:p


Unicorn居然說我起肖了~(咳~這還是Unicorn大人你先發聲的~)


下面就是吃到飽一族JAVA版虛擬碼



public class 吃到飽一族 {

public String 吃到飽行動(int v飽足感, int v滿足感, int v裝食物量){

String 目前狀態 = "";

if(v飽足感 != 999){

目前狀態 = "管他吃了多少,還要再吃";

}else{

目前狀態 = "休息下次吃";

}



if(v滿足感 < v飽足感){

目前狀態 = "管他吃了多少,還要再吃";

}else{

目前狀態 = "休息下次吃";

}



if (v裝食物量 == 0){

if( v滿足感 < v飽足感){

目前狀態 = "管他吃了多少,還要再吃";

}else{

目前狀態 = "休息下次吃";

}

}



return 目前狀態;

}



public static void main(String[] args) {

吃到飽一族 kazuya = new 吃到飽一族();

吃到飽一族 terry = new 吃到飽一族();

吃到飽一族 unicorn = new 吃到飽一族();

吃到飽一族 salamander = new 吃到飽一族();

System.out.println(kazuya.吃到飽行動(0, 0, 999));

System.out.println(terry.吃到飽行動(0, 0, 999));

System.out.println(unicorn.吃到飽行動(0, 0, 999));

System.out.println(salamander.吃到飽行動(0, 0, 999));

}

}









arrow
arrow

    WaitingBar 發表在 痞客邦 留言(0) 人氣()