Some coding standards

1. Dont use illegal name like similar naming, _XXX, etc.
2. Using namespace for a project.
3. All switch should have a default statement.
4. Use integer 0 instead of NULL for null pointer.
5. Always treat include file name as case-sensitive to make cross-platform easier because unlike windows, some other platform does case sensitive.
6. The size of built-in types have different length in different platforms. For example, an int type will diff..
7. Below pic:
posted @ 2008-04-07 00:39  能巴  阅读(153)  评论(0编辑  收藏  举报