write solid code Chapter 2 练习题4 的解答与扩展
摘要:
原题: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 get here*/ break;把这个问题扩展下:看到上题的时候,想到了在u-boot中加入启动命令... 阅读全文
posted @ 2013-07-10 19:13 阿加 阅读(306) 评论(0) 推荐(0)
浙公网安备 33010602011771号