问大家一个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
人气:243 ℃ 时间: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
推荐
- false or false and true or true的结果
- true or false and true or false的结果
- true or false and true or false结果怎么算
- vb ;true false
- True or False:
- 函数f(x)=a^x/(1+a^x) -a是奇函数 则实数a的值为?
- 若A>0,B>0,C
- 在三角形中,角A,B,C对边为a,b,c角A,B,C成等差数列.求cosB的值?若边a,b,c成等比求sinAsinC的值?
猜你喜欢