想问一下 第十课 第六题是什么意思 看不懂~
看不懂老师想表达什么 实在有点蒙..6. 请用小括号和数字序号体现表达式中运算符的优先顺序,并口算出表达式的值(下边假设变量 a、b、c、d 的值分别是 1、2、3、4) <)U&c~%x3
zMY7._giB+ "w[8k)m(OV:Up
比如:a + b * c - d版权属于:bbs.fishc.com
写成:(a + (b * c)1)2 – dsV[T;oC
求值:(1 + (2 * 3)) – 4 == 3EHR>T
;b["g)uxcTGRL%JB&F,3+oerY4
A. a + b && c / d来自:bbs.fishc.com
B. a = b && c - d来自:bbs.fishc.com
C. 'a' + 'b' <= 'c' || a / b + d % cmyst:{g+VB
D. !!a + !b + c – a – cA6okje#
E. a = b - c || a % b && c / d kZ'Yy+&x
pzBIVl3`b4C1"Ghe^YRo0a~Md&
答:来自:bbs.fishc.com
A. a + b && c / dR%2V1
写成:(a + b)1 && (c / d)2&|i"}4.p%>
求值:(1 + 2) && (3 / 4) == 3 && 0 == 0]9jyMN_"n#
Rgmcv Mru9)^&lESL+Cpan=@s
B. a = b && c - d版权属于:bbs.fishc.com
写成:a = (b && (c – d)1)2jN<1]"
求值:a = (2 && (3 - 4)) == a = (2 && -1) == a = 1O1sek[h(7
%SawjQr2hCHYXG*7fzT< ')1}+
C. 'a' + 'b' <= 'c' || a / b + d % c:VD;zIU|P_
写成:(('a' + 'b')1 <= 'c')2 || ((a / b)3 + (d % c)4)5{>YuKXv4
求值:((97 + 98) <= 99) || ((1 / 2) + (4 % 3)) == (195 <= 99) || (0 + 1) == 1a)_Wt>~
9`2y[W<RHLF+}C)~{:^pl0
D. !!a + !b + c – a - c{_j'mK6TG
写成:((((!(!a)1)2 + (!b)3)4 + c)5 – a)6 – c<#!TpHsj
求值:((((!(!1)) + (!2)) + 3) – 1) – 3 == ((((!(0)) + (!2)) + 3) – 1) – 3 == ((((1) + (0)) + 3) – 1) – 3 == … == 1 + 3 – 1 -3 == 0"^rH9C7I!n
<|!g$ .08T>CuUq~]e&3)zmRc?2@
E. a = b - c || a % b && c / d ^MmNeRuh5
写成:a = ((b – c)4 || ((a % b)1 && (c / d)2)3)5vVWlqF
求值:a = ((b - c) || (1 && 0)) == a = (3 - 4) || 0 == a = (-1 || 0) == a = 1#S+f2 已经做完了 不用回帖啦 谢谢
页:
[1]