Типы данных

  • Published on
    17-Jun-2015

  • View
    236

  • Download
    4

Embed Size (px)

Transcript

  • 1. .1

2. ( );. ( . , , - . : ; ; .2 3. Turbo Pascal , , . , . . 3 4. () ()4 5. 5 6. (), , .6 7. () , . . 7 8. - . .8 9. , . . . , Const N=25; K=38; D=(N+K) Div 2; Letter=f; M=5E15; . 9 . 10. Const = ; : Const G=9.8; { } Count=maxint/2+1; {maxint } Nmax=100; { } Nmin=-nmax; S=; { } Kod=$123; { } , , . 10 . 11. . . . Const : = ; , Const N:Integer=15; ch:Char=#87; ocenka:byte=5; predmet:string=; . , . , . 11 12. - , . . , . : .0,1,2,3,4,5,6,7,8,9 , , , , . 12 13. :Pred(x) ; Succ(x) ; Ord(x) ; Chr(x) .13 14. . . , () . , . . , real (6 ) 248 = 281 474 976 710 656 6 8 = 48 . 14 15. - Shorting -128 .. 1271 Integer-32 768 .. 32 767 2 Longint-2 147 483 648 .. 4 2 147 483 647Bite0 .. 2551 Word0 .. 65 5352 15 16. - Real2.9E-39 .. 1.7E3811-12 6 Single1.5E-45 .. 3.4E387-8 Double5.0E-324 .. 1.7E30815-16 8 Extended 3.4E-4932 ..4 19-20 10 1.1E4932 Comp-9.2E18 ..9.2E1819-20 8 16 17. () , TRUE (, , 1 ) FALSE (, , 0 ) (1 )FALSE < TRUE :Var B:boolean;{B - }17 18. () : ASCII , , . 0 255(10) (1 ); ( 0 FF(16); 0 1111 1111(2)) : Char;18 19. () . . : = 1..12; L = a..z; : . . 19 20. . , :Type Week=(mondey, tuesday, wednesday, thursday, friday, saturday, sanday); Var day: week; season: (Winter, Spring, Summer, Autumn); C () Week. 7 : mondey, tuesday, wednesday, thursday, friday, saturday, sanday. 0, 1, .. Day Week, season 20 4 . 21. , , Type (. ): Type = ; , . , Type Matr = array [1..N,1..M] of real; Week=(mondey, tuesday, wednesday, thursday, friday, saturday, sanday); Work_week= mondey .. friday; Day=1..31; Var 21 M: Week; R: Work_week; mas:matr;

Recommended

View more >