Quote:
|
Originally Posted by Jay Lundy
You can still sort of use bools.
typedef bool unsigned char;
or
typedef unsigned char bool;
I can never remember which (more of a C++ guy myself too). I think it's the top one though.
Also:
#define TRUE 1
#define FALSE 0
|
It'd be
Code:
typedef unsigned char bool;
Also, here's a another way (taken from HartRobots.com):
Code:
typedef enum{
true = 1, false = 0
} bool;