switch(n)中的n不能是以下那種類型 A char B int C unsigned D double JAVA中switch只能是int,或者可以隱式轉為int的數據類型byte,char,int.
原文轉自:http://www.anti-gravitydesign.com