已经a=3.5,b=5.0,c=2.5,d=true.表达式a>=0 and a+c>b+3 or not d的值是false还是0?
人气:489 ℃ 时间:2020-05-10 02:36:35
解答
(a>=0)=truea+c=6b+3=8(a+c>b+3)=(6>8)=falsenot d =not true=falsea>=0 and a+c>b+3 or not d=true and false or false=false or false=false或者这样理解已经a=3.5,b=5.0,c=2.5,d=true.表达式a>=0 and a+c>b+3 or ...嗯我知道是false,我是问,答案是false还是0?两者有什么区别哦,这个我曾经研究过,跟你说说:VB承认的True, False表示方法除了常见的True,False这两个布尔值之外可以用数字。·任何不等于零的数字,无论正负,都表示True·0表示False这个是系统承认的我们给出的值。但是,系统反馈给我们的值,则是有统一的规范通过下面小程序就可以知道Private Sub Form_Load()Dim t as integer,f as integert=Truef=Falsemsgbox "True:" & t & "False:" & fEnd Sub结果显示,系统用-1表示true,0表示false
推荐
- VB 2005中 已知a=3.5,b=5.0,c=2.5,d=True,则表达式:a>=0 AND a+c>b+3 OR NOT d的值为 FALSE
- 已经a=3.5,b=5.0,c=2.5,d=true.表达式a>=0 and a+c>b+3 or not d的值是多少
- 设A=true,B=false,C=true,D=false,以下逻辑运算表达式值为真的有().
- false or false and true or true的结果
- true or false and true or false的结果
- 有一串数:1,3,8,22,60,164,448,…其中第一个数是1,第二个数是3,从第三个数起,每个数恰好是前两个数之和的2倍.那么在这串数中,第2000个数除以9的余数是_.
- I'm looking forward to owning an electronic dictionary so my father is going to buy___for me.
- 作文 春天般的记忆 急 600字
猜你喜欢