 |
說明 typedef enum @ 程菡文的程式異想世界 :: 痞客邦 PIXNET ::
各自介紹完後 最後舉個簡單的例子 #include #include typedef enum{ All, January, February, March, April, May}month; month Month; int mon; main(){ printf("隨意輸入1到5之間的一個數"); scanf("%d",&mon); switch(mon){ case January:
bodscar.pixnet.net |
 |