在线检测未来函数

4个条件,要求满足3个

来源:Internet,编辑:股旁网,2012-07-18

编写条件:

4个条件,要求满足3个怎么编写!

编写方法:

 若a、b、c、d分别是四个条件,

只要有两个条件不符合,就不成立。
pc1:=not(a) and not(b);
pc2:=not(a) and not(c);
pc3:=not(a) and not(d);
pc4:=not(b) and not(c);
pc5:=not(b) and not(d);
pc6:=not(c) and not(d);
xg:if(pc1 or pc2 or pc3 or pc4 or pc5 or pc6,0,1);
 

相关文章