
74 Chapter 4
Program 50: What Is Truth, Anyway?
Computers have turned “The truth will set you free” into “The truth will
confuse the heck out of you.”
1 /************************************************
2 * test bool_name, a function turn booleans into*
3 * text. *
4 ************************************************/
5 #include <iostream>
6 #include <string>
7
8 /************************************************
9 * bool_name -- given a boolean value, return *
10 * the text version. *
11 * *
12 * Returns: *
13 * Strings "true" or "false" depending *
14 * on value. *
15 ************************************************/
16 static const std::string &bool_name(
17