[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppBool
The range of a bool can be found at compile time with std::numeric_limits.
bool is not supported in some C programming environments.
The preferred workaround is:
or using macro's:
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppBool
(C++) bool
bool is a standard data type (and thus a keyword) that can contain only the values true and false.The range of a bool can be found at compile time with std::numeric_limits.
bool is not supported in some C programming environments.
The preferred workaround is:
const int false = 0; const int true = 1;
or using macro's:
- define FALSE 0
- define TRUE 1
'bool' links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
