Boolean function in Turbo C++

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;
Is the boolean function already defined under the default headers?
No, because it is part of the language itself, not the standard library.

Would this work? :
No, you are not allowed to redefine reserved keywords.

C++ already has builtin boolean type.
Could you tell me how would I call it in Turbo C++? Cause it doesn't seem to be working for me.
http://www.learncpp.com/cpp-tutorial/26-boolean-values/

I suggest to use proper compiler instead of TurboC++: it is full of obscure bugs, wasn't updated since previous century and does not follows standards.
Topic archived. No new replies allowed.