可以使用的类型:
byte型 (1 byte),
char型 (2 bytes),
short型 (2 bytes),
int型 (4 bytes)
转:
java,c/c++ :switch()中只能用序列数(包括字符)
C# : switch()中 可以用序列数,字符和字符串.
可以使用的类型:
byte型 (1 byte),
char型 (2 bytes),
short型 (2 bytes),
int型 (4 bytes)
转:
java,c/c++ :switch()中只能用序列数(包括字符)
C# : switch()中 可以用序列数,字符和字符串.