星期四, 10月 16, 2008

switch流程控制


switch (變數名稱) {
case 條件值1:
敘述句1;
break;
case 條件值2:
敘述句2;
break;
deafault:
預設敘述句;
}

0 意見:

 

Chunkai's Blog Copyright © 2009 Cookiez is Designed by Ipietoon for Free Blogger Template