您的位置:首页 > 编程语言 > C语言/C++

Adivce from the father of C++

2007-03-18 13:23 561 查看
[1] Avoid nontrivial pointer arithmetic
[2] Take care not to write beyond the bounds of an arrary;
[3] Use o rather than NULL
[4] Use vector and valarrary rather than bulit-in (C-style) arrarys
[5] Use string rather than zero-terminated arrarys of char;
[6] Minimize use of plain reference arguments
[7] Avoid void* except in low-level code
[8] Avoid nontrivial liternal(magic numbers) in code.Instead,define and use symbolic
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  c++ 职场 休闲