共 2 篇文章 |
|
C++代码风格:关于左花括号位置的研究 | 侠客心的个人博客。书中推荐了一套代码编写标准,有人称之为《K&R》标准。)微软风格:if ( a >100 ){最近忽然想到,这可能和早期显示器的分辨率有关:以1981年IBM推出的第一台计算机彩色显示器标准CGA为例,它的最高分辨率为640*200。明白了这一点,争论就可以结束了:今天当然是用微软风格,因... 阅1171 转0 评0 公众公开 14-11-02 13:59 |
c语言NULL和0区别及NULL详解。[6.3.2.3-3] An integer constant expression with the value 0, or such an expression cast to type void *, is called a null pointer constant这里告诉我们:0、0L、''\0''、3 - 3、0 * 17 (它们都是“integer constant expression”)以及 (void*)0 (tyc: 我觉得(void*)0应该算是一个空指... 阅61 转0 评0 公众公开 14-10-19 17:51 |