摘要: C++ doesn't do a very good job of separating interfaces from implementations. A class definition specifies not only a class interface but also a fair 阅读全文
posted @ 2021-09-10 18:09 MyCPlusPlus 阅读(81) 评论(0) 推荐(0) 编辑
摘要: When you inline a function, you may enable compilers to perform context-specific optimizations on the body of the function. Most compilers never perfo 阅读全文
posted @ 2021-09-10 14:32 MyCPlusPlus 阅读(77) 评论(0) 推荐(0) 编辑
摘要: Suppose we have a class for representing GUI menus with background images. The class is designed to be used in a threaded environment, so it has a mut 阅读全文
posted @ 2021-09-10 11:12 MyCPlusPlus 阅读(63) 评论(0) 推荐(0) 编辑