unsigned char testuChar;
unsigned long testuLong;
testuChar = 7;
testuLong = testuChar*100000; //7000000
testuLong = testuChar*10000; //错误值
testuLong = (unsigned long)testuChar*10000; //70000
testuLong = testuChar*1000; //7000
testuLong = testuChar*100; //7000 错误值
testuLong = testuChar*10; //7000 错误值
testuLong = testuChar; //7
还请各位高手不吝赐教!
|