std::boolalpha is an I/O manipulator which prints boolean expressions as "true" and "false" strings instead of the usual 1/0.

#include <iostream>

int main() {
  std::cout << std::boolalpha
    << true << "\n"
    << false << "\n";
}

References