Dig*_*oss 10
重要的是理解用于计算真值表的函数.当你理解这些功能时,真值表将是显而易见的.
A OR B: Either A or B # cream OR sugar, T if either (or both), F if neither
A AND B: Both A and B # cream AND sugar, T only when the coffee has both
A XOR B: One but not both # T only if sugar but no cream or if cream but no sugar
NOT A: Kind of obvious # NOT sugar, true if the tea has no sugar
A NAND B: NOT (A AND B) # T unless both cream and sugar are in the tea
A NOR B: NOT (A OR B) # T only if there is no sugar and also no cream
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8598 次 |
| 最近记录: |