两个unsigned int相加,有什么简单的办法判断产生了溢出?汇编语言里有标志寄存器帮忙,在C++里怎么办呢?[解决办法]if (a > (unsigned)-1 - b)[解决办法]if(A > ~B) return error;