摘要:
一、值类型1. 数值整数字面量:int x = 100; //decimal notationlong y = 0x7F; //hexadecimal notation实数字面量:double x = 1.5; //decimal notationdouble y = 1E06; //exponential notation数值字面量类型推定:如果数值字面量包含一个小数点或者包含指数部分(E),则为double类型。否则,数值字面量是下面第一个能适配的类型:int,uint, long, ulong。数值字面量后缀:float f = 1.0F;double d = 1D;decimal m 阅读全文
posted @ 2011-05-29 20:06
ideasea
阅读(1340)
评论(5)
推荐(2)
浙公网安备 33010602011771号