Boolean function in Turbo C++
Jan 9, 2015 at 11:44am UTC
Is the boolean function already defined under the default headers? Else, how would I create one?
Would this work? :
1 2 3 4
#define true 1
#define false 0
typedef int bool ;
Bool x=true ;
Jan 9, 2015 at 11:59am UTC
Is the boolean function already defined under the default headers?
No, because it is part of the
language itself , not the standard library.
No, you are not allowed to redefine reserved keywords.
C++ already has builtin boolean type.
Jan 9, 2015 at 12:24pm UTC
Could you tell me how would I call it in Turbo C++? Cause it doesn't seem to be working for me.
Jan 9, 2015 at 12:39pm UTC
Topic archived. No new replies allowed.