.


:




:

































 

 

 

 


. 2

10. -. - , , () . Read Write, INPUT OUTPUT. , . - ENTER. : Read(A1,A2,...AK); ReadLn(A1,A2,...AK); ReadLn; - 1, 2,..., . , - , - 1, 2,..., . - . , . -, , , , . . , . , - , . : var rV, rS: Real; iW, iJ: Integer; chC, chD: Char;................ Read(rV, rS, iW, iJ); Read(chC, chD); Enter. : Write(A1,A2,...AK); WriteLn(A1,A2,...AK); WriteLn; 1,2,..., . 1, 2,..., . . , , ,, . - . - , . - : - , - , - -, - TRUE FALSE. . :, - , - . , , . - , - . ::, - - , - , - . - . . :............ var rA, rB: Real; iP,iQ:Integer; bR, bS: Boolean; chT, chV, chU, chW: Char;............ WriteLn(rA, rB:10:2); WriteLn(iP, iQ:8); WriteLn(bR, bS:8); WriteLn(chT, chV, chU, chW); 11. , . , : Program PRIM; (-), , , - , , . USES - () TURBO PASCAL, . . - : uses CRT, Graph; . , , . - . , , , : label 3, 471, 29, Quit; -, : const K= 1024; MAX= 16384; -, : var P,Q,R: Integer; A,B: Char; F1,F2: Boolean; , . - , , - . , begin.......end . ;. . - , - , { }. - , - . - . $ - + ( ) - (- ). : {$E+} - ; {$F+} - ; {$N+} - ; {$R+} - . , : {$I } - - . : Program TRIANG; var A, B, C, S, P: Real; begin Read(A,B,C); WriteLn(A,B,C); P:=(A+B+C)/2; S:=Sqrt(P*(P-A)*(P-B)*(P-C)); WriteLn('S=',S:8:3) end. 12. TURBO PASCAL (). - . - not, and, or xor. not , . and, or xor - , - . . - shl shr: I shl N I shr N. I N . , , , - . . 13. , . - , -, , , - . : goto 218; 14. ( ) - , . - .{} , : -, , . , . , , . , , , - . . , , - , . , , . . ( ), , - GOTO. ,: -; -; - ; - ; - ; -. , . 15. {} : - B , 1, - , . B, , -. 16. {}17. {}18. {}19. , . 7.0 Break Continue. Break . - Continue . 20. {}21. , . - . , , - , . - , ., Rainbow() RED, ORANGE, YELLOW, GREEN, LIGHT_BLUE, BLUE, VIOLET (,, , , , , ). - Traffic_Light () RED, YELLOW, GREEN (, , ). , type, : type Rainbow = (RED, ORANGE, YELLOW, GREEN, LIGHT_BLUE, BLUE, VIOLET); - , . -, Traffic_Light Rainbow, -. , , - , .: type Traffic_Light= (RED, YELLOW, GREEN); var Section: Traffic_Light; , Section RED,YELLOW GREEN. - , : var Section: (RED, YELLOW, GREEN); , - , . : Section:= YELLOW; , - , , -. , - Pred,Succ, Ord. - . 22. . , . - , , , . , - , . , . . {} , , - , . - , , .23. . . , , . . . - , - : A[5] S[k+1] B[3,5]. . . . , - , , .{} , -, : R1:=Z. , .{} , - . . ( - ) . - , -: type Dim10= Array[1..10] of Real; const raM10: Dim10 = (0, 2.1, 4, 5.65, 6.1, 6.7, 7.2, 8, 8.7, 9.3); : type Dim3x2= Array[1..3,1..2] of Integer; const iaM3x2: Dim3x2= ((1, 2) (3, 4) (5, 6)); - - FillChar: FillChar(var V; NBytes: Word; B: Byte); . -, A[1..10] of Real : FillChar(A, 40, 0); FillChar(A, SizeOf(A), 0); {}24. . - - : . , - . - PACKED, : var MAS: Packed Array[1..20] of Char; : var M: Array[1..20] of char; , , - Pack, UnPack. . , -. , , , . - - . -. , . - -, TURBO PASCAL String. , 30 , - type s= String[30]; , 255 . TURBO PASCAL , type s= String; String . , - , . - " ", . 1. Char. , . . , () . . , . -, . - , - . , . - , . - , . - : const sName: String[9]= 'IBM PC/AT'; FillChar: FillChar(var V; NBytes: Word; C: Char); : FillChar(A, SizeOf(A), '0'); TURBO PASCAL -, .{}


<== | ==>
 | RS485
:


: 2016-12-31; !; : 285 |


:

:

: , .
==> ...

2023 - | 1643 -


© 2015-2024 lektsii.org - -

: 0.012 .