2008年6月17日
摘要: short s1 = 1; s1 = s1 + 1;有错,s1是short型,s1+1是int型,不能显式转化为short型。可修改为s1 =(short)(s1 + 1) 。 short s1 = 1; s1 += 1 正确。 阅读全文
posted @ 2008-06-17 01:27 齐世昌 阅读(1836) 评论(0) 推荐(0)