已解决问题 - 浏览1125次
下一个已解决问题
过客
218.0.172.*
pascal中 not,or,and的用处,实例,讲解
要最详细的,老是搞不清not,or,and在运算中的意义.
请您登陆后发表意见。
最佳答案 - 由投票者2008-01-01 12:22:01选出
假设:存在变量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语句)
请您登陆后发表意见。

鸿蒙










