Well, these bool-type values are converted to integer values. If we want cout to display "true" or "false" instead of 0 or 1, we can use std::boolalpha

Let's use boolalpha to print true here.

If we want cout to display "true" or "false" instead of 0 or 1, we can use std::boolalpha in a previous or the same statement.

The variable needs to be first converted with boolalpha and then printed via cout.