Prints 0 or 1. 0 for false 1 for true
If you want it to print ‘true’ or ‘false’. send std::boolalpha
to the output stream
Typecast Int → Boolean
as long as the integer is >= 1, then the boolean is true, other case, then its false.
Prints 0 or 1. 0 for false 1 for true
If you want it to print ‘true’ or ‘false’. send std::boolalpha
to the output stream
as long as the integer is >= 1, then the boolean is true, other case, then its false.