1, a console application program Greeting; {$ APPTYPE CONSOLE} var MyMessage: string; veginMyMessage: = 'Hello World!'; Writeln (MyMessage); end.Save to GREETING.PAS or GREETING.DPRwin DCC32 Greetinglinux dcc Greeting2, Unit Framework and syntax Unit1; InterfaceUSmementationUsesinitializationFinalizationEndenIzitizationFinalizationEnd.3, Uses sequence generated problem This order determines the order of execution of program code execution of the initialization section, Finalization and INITIARIZATION. If the two units have the same name object, the role is the rest of the rest. 4, symbol (. Equivalent to [.) Equivalent to] (* equivalent to {*) equivalent to}%,?, /,!, ", _, |, ~ Not special symbol @var represents the address of Variable VAR P ^ Indicates the value of the pointer {$ B } Complete calculation {$ b-} Express (default) If the operand contains variables, always compact compiler option-> Complete Boolean evAluation for this option hint indicator Platform indicator platform DepRecated Indicates Old Library Relying on special library files or components 5, syntax Lable AAA; GTO AAA; if Exp1 Then IF EXP2 THEN S1 ELSE S2; equivalent to if exp1 thenbegin if exp2 then s1 else s2nd; 6, data type sequence ORD sequence pre-drive SUCC follow-up Inc Increase DEC reduction enumeration Type size = (small = 5, medium = 10, Large = SMALL MedIUM); // size included a 5 ~ 15 total 11 value array [size] of char has 11 Type Someenum = E1, E2, E3 = 1); // ORD (E1) = 0 ORD (E2) = 1 ORD (E3) = 1 Array [1..100] of real; packed will affect the speed, which affects the compatibility set to the structural type, which is defined on the basis of the number of sequence types, and the TYPE TASET = SET OF 1..250 record belongs to the structure type becomes recordtype TEmployee = recordFirstName, LaseName: string [40]; case salaried: boolean of true: (AnnualSalary: currency); false: (hourlyWage: currency); end; ^ typeName pointer representative of pointer type pointing .Pointer ^ typeName representatives Pointer Pointing Address NEW GetMem Addr PTR {$ T } @ can only get ^ t 1 pointer {$ t-} None type pointer mode, all pointer compatible standard pointer system, sysutils Pansistring, PstringPbyteArrayP Currency, PDOUBLE, PEXTended, PSinglepintegerpolevariantpshortstringptBufpvarRecpvariantpwideStringPwordArray