【发布时间】:2009-06-03 19:31:59
【问题描述】:
我们都知道在 C# 中我们不能将 bool 转换为 int。我想用位掩码看看 true 的二进制表示是什么,但我不能使用 (bool & int).. 我认为问题在于架构设计“true is true, not any number != 0” (C++)我想知道这种架构的好处是什么? C 真/假概念有什么不好?
【问题讨论】:
-
请参阅"Should questions include “tags” in their titles?",其中的共识是“不,他们不应该”!