warning C4018: “<”: 有符号/无符号不匹配

原因:

将两个不同的类型进行了比较,如:

int a;unsigned short b;

if(a>b)...

解决:改为同一种类型

猜你喜欢

转载自www.cnblogs.com/judes/p/9273589.html