基本数据类型
[img]http://dl.iteye.com/upload/attachment/0073/6203/37b97071-8a99-3569-b302-b9323d86ae53.jpg[/img]
[img]http://dl.iteye.com/upload/attachment/0073/6205/dbd51693-b043-3d38-aeef-a09eb23af2ff.jpg[/img]
&& 逻辑与 || 逻辑或 !逻辑非
位运算符:&与, | 或,^ 异或,~非,>>右移,<<左移,>>> 高位填充0的右移
三元运算符: ? : --- condition?e1:e2; condition为true是返回e1,false时返回e2.
异常结构
[img]http://dl.iteye.com/upload/attachment/0073/6209/31c2991a-8c2b-3d02-8251-f04af88aa19a.jpg[/img]
[img]http://dl.iteye.com/upload/attachment/0073/6203/37b97071-8a99-3569-b302-b9323d86ae53.jpg[/img]
[img]http://dl.iteye.com/upload/attachment/0073/6205/dbd51693-b043-3d38-aeef-a09eb23af2ff.jpg[/img]
int n = 7, m = 2;
double d = 7;
n = n/m; //3
d /= m; //3.5
n--; //2
int a = 2 * n++;//4
int b = 2 * ++n;//6
&& 逻辑与 || 逻辑或 !逻辑非
位运算符:&与, | 或,^ 异或,~非,>>右移,<<左移,>>> 高位填充0的右移
三元运算符: ? : --- condition?e1:e2; condition为true是返回e1,false时返回e2.
异常结构
[img]http://dl.iteye.com/upload/attachment/0073/6209/31c2991a-8c2b-3d02-8251-f04af88aa19a.jpg[/img]