1 / 17
文档名称:

《软件编码规范》(参考word).doc

格式:doc   大小:119KB   页数:17页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

《软件编码规范》(参考word).doc

上传人:精品小课件 2021/1/3 文件大小:119 KB

下载得到文件列表

《软件编码规范》(参考word).doc

相关文档

文档介绍

文档介绍:天正软件编码规范
命名规范
通则
在所有命名中,都应使用标准的英文单词或缩写,避免使用汉语拼音。
所有命名都应遵循达意原则,即名称应含义清晰、明确。
所有命名都不易过长,在可表达清晰的前提下越简洁越好。
所有命名都应尽量使用全称。
在类型名称特别复杂的时候,应使用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 grp
ListBox lst
Picture pic
Progress