原帖由 mickyen 于 2009-7-13 02:43 PM 发表
1.
Input : integer, favNumber string favColor
Using : case
favNUmber Favcolor output
0< faNumber
原帖由 宅男-兜着走 于 2009-7-13 10:21 PM 发表
1.
var favcolor:String = "yellow";
favNUmber = 81;
var _case:String;
if(favcolor != "yellow" && favcolor != "green"){
favcolor="other";
}
if(favNUmber > 0 && favNUmber 50 && favNUm ...
原帖由 宅男-兜着走 于 2009-7-13 10:21 PM 发表
1.
var favcolor:String = "yellow";
favNUmber = 81;
var _case:String;
if(favcolor != "yellow" && favcolor != "green"){
favcolor="other";
}
if(favNUmber > 0 && favNUmber 50 && favNUm ...
原帖由 Super-Tomato 于 2009-7-14 02:50 AM 发表
呵~~~ 初學者當然應該先从 switch...case 和 if..else 開始,等到累积了经验就可以用 array 来完成了
欢迎光临 JBTALKS.CC (https://jbtalks.my/) | Powered by Discuz! X2.5 |