问大家一个vb判断true or false
private sub form_click()
dim s as Boolean
a=2:b=3:c=4:d=5
s=a>b and 2*a>c or cb and 2*a>c or c
人气:154 ℃ 时间:2020-02-03 06:07:36
解答
主要是运算符优先级的问题,用括号括一下,可能你就容易理解了
s = (a>b and (2*a)>c) or c3 and (2*2)>4) or 44) or true
s = (false and false) or true
s = false or true
s = true
推荐
猜你喜欢
- 形容南极环境的ABB式的词语
- 1,7,17,(),49,71,97,127填一数字
- 越弱越水解,谁强显谁性.具体分析.举例.
- her birthday is July 7th.请改为同义句.her -----is July7th.
- 李师傅用一段0.96米长的铁丝,焊接一个长方体(接头忽略不计),长、宽、高的比是9:8:7.现要把做成的长方体表面糊上牛皮纸(上面不糊),需要牛皮纸多少平方米?(得数保留两位小数)
- 设实数a.b.x.y满足a²+b²=1,x²+y²=3,则ax+by的最大值
- 英语中被动语态的结构
- mumu would like milk and eggs,but he would not like vegetables( )the breakfast time