Camel style nomenclature : As its name indicates, it refers to the name of a mix of upper and lower case letters to form a variable and function. For example, the following is the same function named by camel nomenclature and underscore: The first function name uses camel nomenclature, and each logical breakpoint in the function name is marked with a capital letter; the second function name uses underscore, and each logical breakpoint in the function name has a logical breakpoint in the function name. A underscore to mark it. Camel-style nomenclature has become increasingly popular in recent years, and it is used quite well in many new libraries and environments like Microsoft Windows. On the other hand, the underscore method became popular after c appeared, and it was very common in many old programs and environments like UNIX. Hungarian nomenclature : Widely used in environments like Microsoft Windows. The naming rules for variables (also including macros) used in Windows programming Hungarian nomenclature, a skilled Microsoft programmer, proposed by Charles Simonyi. The Hungarian nomenclature uses prefixes to add the corresponding lowercase symbolic marks to the variable name to identify the scope, type, etc. These symbols can be used at the same time, in the order of m_ (member variable), then pointer, then simple data type, and then other. For example: m_lpszStr, represents a long pointer member variable pointing to a string ending with 0 characters. The key to Hungarian nomenclature is: the name of the identifier begins with one or more lowercase letters as the prefix; the prefix is followed by a word or combination of multiple words in the capitalized first letter, and the word must indicate the purpose of the variable. Pascal nomenclature : Similar to the camel nomenclature. However, the camel nomenclature is in the lowercase first letter, while the Pascal nomenclature is in the uppercase first letter, such as: Both use Pascal nomenclature. In C#, most of them are Pascal nomenclature and camel nomenclature. A summary of three naming rules: MyData is an example of Pascal naming MyData is a camel nomenclature. The first letter of its first word is lowercase, and the first letter of the word is capitalized, which looks like a camel iMyData is a Hungarian nomenclature. Its lowercase i indicates its pattern, and the following is the same as Pascal's name, indicating the purpose of the variable. printEmployeePaychecks();
print_employee_paychecks(); DisplayInfo();
string UserName;