2026-06-16 ⋅ Dan Boolalpha cpp98 beginner io 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 cppreferences: boolalpha