1 . The type name and function name are combined with words beginning with uppercase letters. For example:
class Node; // class name class Leafnode; // class name void Draw (void); // Name of function void SetValue (int value); // Name of function
2 . The variable name and parameter name are combined with the first letter lowercase word and the words that follow the first letter of the word. For example:
BOOL Flag; int DrawMode;
3, symbolic constants and macro names are combined with all uppercase words, and separated by a single underline between the words, note that it is best not to use underscores. For example:
Const int - ; Const int 1024x768;
4 . Prefix the static variable with s_, prefix the global variable with the g_, and prefix the data members of the class with m_. For example:
Static int S_initvalue; int g_howmanypeople;
Simple Windows Application naming