C++:变量命名

1:变量命名

int aiTemp[256];

int *piTemp[256];

2: 函数命名规则

动词+名词;

startFaceDetection();

3: 类名的命名规则

class CFaceDetection

{ }

CFaceDetection iFaceDetection;

4:结构体

typedef struct tagFaceDetect{

int iNum;

char cPath[256];

}FaceDetectSt;

FaceDetectSt stFaceDetect;

猜你喜欢

转载自blog.csdn.net/wfei101/article/details/80615540