这个逻辑式还能简化吗?
所有跟贴
·
加跟贴
·
新语丝读书论坛
送交者: Enlighten 于 2008-04-29, 14:54:52:
(A and B) or (B and C) or (C and A)
所有跟贴:
(int)A + (int)B + (int)C >= 2. (无内容)
-
Amsel
(0 bytes)
2008-04-29, 15:06:20
(222314)
c里面肯定对。MATLAB里面也是对的: (2>1)+(2>0), ans=2 (无内容)
-
Amsel
(0 bytes)
2008-04-29, 15:09:55
(222321)
what's (int)? (无内容)
-
Enlighten
(0 bytes)
2008-04-29, 15:09:10
(222318)
强制类型转换,由布尔型转为整数。不提倡。 (无内容)
-
Amsel
(0 bytes)
2008-04-29, 15:10:38
(222322)
got it. (无内容)
-
Enlighten
(0 bytes)
2008-04-29, 15:13:00
(222323)
可以
-
粪青
(119 bytes)
2008-04-29, 15:00:38
(222309)
加跟贴
笔名:
密码:
注册笔名请按这里
标题:
内容: (
BBCode使用说明
)