0) All function names, variable names, and class name naming are in English, and there is no abbreviation of Chinese pinyin or pinyin. English abbreviations are generally not abbreviated in addition to several commonly used abbreviations.
1) In the case where the function module is mainly achieved by computer: When the semantic abstraction level is low, the variable is naming adopts a weak Hungarian nomenclature.
The general variable uses a "variable type prefix English word English words" naming method. Each English letter is capitalized, and the variable prefix is lowercase. For example, StrResultName.
The cyclic variables generally take Nindex naming, which is forbidden to use I, J, K as a cyclic variable.
2) The function module is mainly for higher levels of abstract semantics: variables are named after their meaning. All letters are lowercase, and the two words are connected with underscore.
For example, result_name_string. It is forbidden two words to connect together without using the underscore. This naming method is called "Semantic Nomenade".
3) Name naming specification of all classes and structures: All written names, start with underscore, intermediate words with underscore.
For example, class _sms_body {}; its variable is generally as: _SMS_BODY SMS_BODY; or, as: _sms_body temp_sms_body;
4) Function Naming Specification: The name of all functions is uppercase, and the first letter of each word is capitalized later.
When the function name is too long, use the underline connection at the appropriate word connection. For example, getTheheader ();
5) Class member variable (except static member variables) A lowercase "m_" start, if it is the pointer type, "M_P" begins.
Member variables depend on its abstraction, if the degree of abstraction is low, use weak Hungarian naming methods after prefix; if the abstraction is high, take "Semantic Nighting".
6) The function name can add a forefruit or a repelling word, indicating whether it is a temporary function or only the test, or indicates the version number or the modification time.