
Everyday Problems 89
34 int main()
35 {
36 // The first temporary name
37 char *a_name = tmp_name();
38
39 // The second temporary name
40 char *b_name = tmp_name();
41
42 std::cout << "Name (a): " << a_name << endl;
43 std::cout << "Name (b): " << b_name << endl;
44 return(0);
45 }
(Next Hint 322. Answer 64.)
I was assigned to program a newly built light panel. Light #1 was supposed
to be “Data Fail,” light #2 “Change Filter,” light #3 “Oil Pressure Low” and
so on.
A short test revealed that the panel was wired wrong. Light #1 was “Oil
Pressure Low,” Light #2 “Oil Pressure Low,” and so on.
I carefully copied down the numbers for the lights and then hunted ...