Symbian C ++ learning 2 data type and code specification

xiaoxiao2021-03-06  27

Data Type Description TINT8, TUINT88 - bit TINT16 TINT16, TUINT1616 位 整 t TINT32, TUINT3232 Amplity Tint, Tuint (32-bit) integer TREAL32, TREAL64 Real Ttext8, Ttext16 Character, equivalent to unsigned char, UNSIGNED SHORT INTTBOOL Boole

Code specification

Symbian OS uses a lot of code specification, using them to enhance the readability of Symbain code, some specification even need strict compliance, such as class name: Symbian OS has a total of 6 types:

Category Example Description T ClassestDesc, TPOINT This class can be used as the basic type because they are usually small, and there is no destructure function C classesccconsolebase, and CACTive This class is Symbian. CBASE. Class Inherit, they must have a patriability function because their objects are created in the HEAP R ClassSrfile, and RTimerr represents the resource (resource), they are just a handle of a system resource, they are created on stack, but they are used The resource is created on the HEAP. It is time to use Close () m ClassesmeikMenuobServer. This class is an empty interface. When you use it, you need to inherit static classsuser, Math This class is only a static function, generally the library function STRUCTSEIKCONTROLINFOC - STRUCT

Variable naming:

Category Example Description Enumeration Emonday, ETESDAYE Represents Quit Quantitative KmaxFileNamek Represents Quantifier Variable Idevice, IXI Represents Member Variable Parameters Adevice, AXA Represents Parameters Partial Variable Device, X Local Variables There is no fixed specification.

转载请注明原文地址:https://www.9cbs.com/read-65122.html

New Post(0)