Www.j2mehome.com Symbian program programming specifications and Data Types

Source: Internet
Author: User
Tags uppercase letter

The Symbian programming specification follows the traditional C ++ coding specification to a large extent. In addition, the Symbian ApplicationProgramThere are also some program specifications:

1. The first letter of the class name and function name must be an uppercase letter, such as the csimple class and printf () function.

2. The first letter of the variable of the class member must be lower case I, for example, the common variable tint ival (tint is the variable type ).

3. In the form of a function, the first letter of the parameter name must be a, for example, the aint and avalue variables.

4. The macro name must start with an underscore, and the words in the name must be separated by an underscore. For example, macro _ uheap_mark and _ marker. In addition, each letter of the macro name should be uppercase letters.

5. The first letter of a constant must be an uppercase letter K, such as kformat and kfilename.

6. The enumeration name starts with T, for example, thelloworld+appexit.

7. The function name ends with an uppercase letter (L), indicating that an exception may occur during function execution, such as the doexamplel () function.

Http://www.j2mehome.com/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.