软件编码规范教材.docVIP

  • 4
  • 0
  • 约1.9万字
  • 约 14页
  • 2018-08-28 发布于湖北
  • 举报
软件编码规范C++版 Ver1.1(草稿) 项目: 时间: 编号: PAGE PAGE 2 北京天正工程软件有限公司 Beijing Tangent Engineering Software Co. Ltd. 天正软件编码规范 命名规范 通则 在所有命名中,都应使用标准的英文单词或缩写,避免使用汉语拼音。 所有命名都应遵循达意原则,即名称应含义清晰、明确。 所有命名都不易过长,在可表达清晰的前提下越简洁越好。 所有命名都应尽量使用全称。 在类型名称特别复杂的时候,应使用typedef来定义别名。 标识符 标识符的命名要清晰、明了,有明确含义,同时使用完整的单词或大家基本可以理解的缩写,避免使人产生误解。(较短的单词可通过去掉“元音”形成缩写;较长的单词可取单词的头几个字母形成缩写;一些单词有大家公认的缩写) 如下单词的常用缩写 application app argument arg average avg block blk buffer buf command cmd control ctrl database db delete del description desc dialog dlg dictionary dict dimension dim distance dist document doc entity ent escape esc flag flg increase inc information info length len library lib manager mgr memory mem message msg object obj password pwd picture pic ployline pline pointer ptr position pos record rec reference ref resource rsc screen scr server srv source src system sys temp tmp text txt version ver window wnd VC++中常用控件缩写 Animate ani Check Box chk ComboBox cmb Edit edt Group Box

文档评论(0)

1亿VIP精品文档

相关文档