#include<iostream.h>void main(){unsigned int x(10);unsigned int y(5);unsigned int z;z=y-x;cout<<"y-x="<<z;
}unsigned int 的数值范围在0~4294967295,如果z为负数就会用最大范围值去减z.就为z=4294967295-(y-x)所以z就为4294967291(保证不为负数,就算错了).
谢谢~~~~~~~~~~~~~~~~~这年头好人就上多哈