6.列挙型
1 /*列挙型mtype*/ 2 mtype ={on, off}; 3 mtype switch; 4 active proctype proc(){ 5 switch = on; 6 switch = off; 7 }