c语言,C++ 工程实践(5):避免使用虚函数作为库的接口

陈硕 (giantchen_AT_gmail) Blog.csdn.net/Solstice 摘要:作为 C++ 动态库的作者,应当避免使用虚函数作为库的接口。这么做会给保持二进制兼容性带来很大麻烦,不得不增加很多不必要的 interfaces,最终重蹈 COM 的覆辙。 本文主要讨论 Linux x86 平台,会继续举 Windows/COM 作为反面教材。 本文是上一篇《C++ 工程实践(... [阅读全文]

c语言,C ++

main The Operating system uses the value returned by main method to determine whether the program succeeded or failed. A return value of 0 indicates success. #include This line is a preprocessor dir... [阅读全文]
1 共1条 分1页