已解决问题 - 浏览771次

下一个已解决问题

过客

218.0.172.*

pascal中 not,or,and的用处,实例,讲解

要最详细的,老是搞不清not,or,and在运算中的意义.

还可输入300个字

请输入上图中的验证码,字母不区分大小写。

点击查看更多 pascal 用处 实例 相关信息

鸿蒙鸿蒙

勤学秀才


最佳答案 - 由投票者4个月前选出

假设:存在变量A,B,C :boolean;
A := True;
B := False;
C := Ture;
Not 就是逻辑取反 :
IF B then statements (当B为True时,则执行statements语句)
IF NOT B then statements(当B为False时,NOT B 就是True,这时执行statements)

OR 逻辑求和(合集):
IF A or B Then statements (A和B 有一个以上为真,则执行statements)
AND 逻辑求交(交集):
IF A and B then statements (A 和 B 必须都为True 才能执行statements语句)

0 0

还可输入300个字

请输入上图中的验证码,字母不区分大小写。

返回知识堂首页>>

1