![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
breeze_gao
I'm Singing, Amen I'm Alive!
I'm Alive, Amen I'm singing!
展开
-
C++ styles
<br />1. An entity (function, class, etc) only has one compact responsibility.<br /> design small class, and seperate incompact functions.<br /> <br />2. Use 'const' as more as possible.<br /> for example:<br /> class Paras{ static co原创 2010-12-13 18:31:00 · 332 阅读 · 0 评论 -
Pure Virtual Functions and Abstract Classes
<br /><br />Original Link:http://msdn.microsoft.com/en-us/library/aa273534(v=vs.60).aspx<br /><br />C++ Specific —><br />An abstract class contains at least one pure virtual function. Specify a virtual function as pure by placing = 0 at the end of its decl转载 2011-03-07 13:21:00 · 302 阅读 · 0 评论 -
don't forget to append one ';' after every class definition
<br />gcc compiler complains that 'error: expected unqualified-id before string constant'<br />The most possible reason is that you forget one ';' after a class definition. Java programmers never forget the ';' after every class definition. <br />And rem原创 2011-03-07 15:42:00 · 443 阅读 · 0 评论