- PrintEmployeePaychecks ();
- Print_employee_paychecks ();
-
The first function name uses the camel naming method-each logical breakpoint in the function name is marked with an uppercase letter; the second function name uses the underline method-each logical breakpoint in the function name is marked with an underscore. The camel naming method has become increasingly popular in recent years. It is widely used in many new functions libraries and Microsoft Windows environments. On the other hand, the underline method became popular after the emergence of c. it is widely used in many old programs and UNIX environments. Camel naming method(Camel-Case) is a set of naming rules for computer programming ). The camel naming method means that the first word starts with a lowercase letter when the variable name or function name is a unique recognition word that is composed of one or more words; the first letter of the second word is capitalized or the first letter of each word is capitalized, for example, myFirstName and myLastName. such a variable name looks like a bucket, and hence its name. Camel naming methodThe term Camel-Case comes from a mix of upper and lower Case formats commonly used in Perl, and o''reilly, a best-selling book by Larry Wall and others, published by Programming Perl) the cover picture is exactly a camel. The naming rules of the camel naming method can be viewed as a convention without being absolute or mandatory, in order to increase recognition and readability. Hump method (small hump method)Variables are generally identified by the small hump method. The camper method means that except the first word, the first letter of other words is capitalized. For example
- Int myStudentCount;
-
The first word of the variable myStudentCount is in lowercase, and the first letter of the subsequent word is in uppercase. Pascal method)Compared with the small camper method, the big camper method also upper the first letter of the first word. It is often used for class name, function name, attribute, and namespace. For example
- Publicclass DataBaseUser;
|