jhh0111

常用链接

统计

最新评论

04 2008 档案

浅谈C#基本数字数据类型。
     摘要: 众所周知,像“int a = 10; short b = a“这样的语句是无法编译通过的,原因是cannot implicitly convert type 'int' to 'short'。而我写上“short = 10”这样的语句是没有问题的,即没有错误也没有警告,这是为什么呢,难道编译器自动帮我加上强制类型转换?为了揭开这些方面的谜题,我做了些测试,因此有了本文。  阅读全文

posted @ 2008-04-22 14:56 中华小鹰 阅读(505) | 评论 (3)  编辑