Delphi Learning Notes (2) -Object Pascal Language Statements Select Blog from XMZ2629

xiaoxiao2021-03-06  19

Second, the statement first wants to say begin ... End; equivalent to {...} in C or C . (1) Statement statement constant: constant identifier [: Type] = Factory; Variable: VAR Variable Identifier: Data Type; (2) The legitimate clause operator consisting of expression statement by operator: operator priority Level @ NOT 1 (highest) *, /, div, mod, and, shl, shr, as, 2 , -, or, xor 3>, <,> =, <=, <>, =, in, IS 4 (minimum) (3) with ... The END statement is mainly used when operating the record type or component. Example: Type People = Record // Define Record People Name: String; Addr: String; Age: Integer; Sex: String; End; Var Me: People; // Define the PEOPLE type Variable with me do begin name: = 'Paul '; Addr: =' guangzhou '; Age: = 23; SEX: =' Male '; end; (4) GOTO statement Now all sounds are to reduce the goto statement is used, so as little as possible is.

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

New Post(0)