编译器问题特性问题,使用带符号的变量就要用signed char ,否则会出现 "pointless comparison of unsigned integer with zero "的错误。 改正方式:将变量改为int或者其他有符号型