[SLP-Homepage]    [Source Modules]    [Manual]    [Run]    [Examples]
 

The Boolean Datatype

The C++ language is lacking a boolean datatype. While everything can be done with integer, it is at least important for documentation purposes to define explicitly which variables, parameters and functions can only take boolean values.

Therefore, this module defines a type bool_t (as a synonym for int) and two constants BOOL_TRUE and BOOL_FALSE.


Implementation:


Stefan Brass (sbrass@sis.pitt.edu), March 18, 2001.    [HTML 3.2 Checked]