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#include <iostream> << std::boolalpha#include <iostream>
<< true << "\n"
<< false << "\n";
}
Dan