习惯应该从新手养成 在以后将会受益匪浅
编程要有命名规则 使变量名看起来简单明了 便于阅读修改
编程风格要注意排版,缩进和注释
例如:适当的缩进,每个花括号占一行,bin并与使用花括号的语句对其。
注释在编程中同时进行,不要期望程序开发完成后再补写注释。
必要的注释内容应包括:源程序总体注释(文件名,作用,创建时间,版本,作者及引用的手册,运行环境等)
函数注释(目的,算法,使用的参数和返回值含义,对环境的一些假设)等
C++标准关键字
asm auto break ase catch char
class const continue default delete do
double else eunm extern float for
frient goto if inline int long
new operator private protected public register
return short signed sizeof static struct
switch template this throw try typedef
union unsigned virtual void volatile while