Windows 开发一些细节(待完善)

来源:互联网 发布:知豆新能源汽车 编辑:程序博客网 时间:2024/05/17 09:07

从变量的类型看变量的用途

int x=3;

int y=3; 

//只能通过注释和上下文了解x,y

 

typedef  int  WEIGHT;

typedef  int   HEIGHT;

WEIGHT x;

HEIGHT  y;

//从类型可以判断x,y的信息,windows采用这种模式定义

0 0
原创粉丝点击