原题: 4.When programmers add new elements to an enumeration, they sometimes forget to add new cases to the appropriate switch statements. How could you use assertions to help detect this problem? 附录中的答案: . . . default: ASSERT(FALSE); /*We should never…