.


:




:

































 

 

 

 


,




, , , . , ' ', - , , .

 

, ' '. ' , , ' ', ' .

 

-10 , ' , , . . ( ..., ...) ' .

 

-10 , ³ . , :

- ;

- ;

- , ;

-, ' ;

-.

22. short.

short 16- . -32768 32767. , , Java , , , .

short s;

short t = Ox55aa;

23 , :

.

1. :

+1 = 1, + 0 = .

2. :

X 1 = X, X 0 = 0.

3. 㳿*:

X + X = X, X X = X.

4. :

+ =1, - = 0.

-. .

24 .

:

1. - .

2. , , .

3. , , .

4. ˳ , ' -. .

27.

Long , Integer.

Long 0.

䳿. , . NET Framework, COM-', ', Long (16 ). 32- , Integer, Long Visual Basic.

, 64- Windows 95, Windows 98, Windows ME Windows 2000. Visual Basic Long.

. Long Decimal, Single, Double. , Long - System.OverflowException.

. L Long. & - Long.

28.

. .

' = sin2 - . 11. , . ˳ ' , .

 

67.

if , .

:

 

if then 1 else 2;

 

, 1, 2.

, , 1. :

 

if then 1;

 

, else ; .

 

, (1 2). , begin end. begin end, .

 

 

if a>max then max:=a else max:=b;

if a[i]>a[i+1] then

begin

a[i]:=a[i]+a[i+1];

a[i+1]:=a[i]‑a[i+1];

a[i]:=a[i]‑a[i+1];

end;

if . (). :

 

if (a>b and b>c) then midd:=b;

68.

, ' . < 1, '; | | > 1, ' . . 12.

, - , , ' .

'-. - .

 

 

16/ byte

byte 8- . -128 127. , .

byte b;

byte = 055;

17 / , 쳿 - . , . - . , , , . , , R81 (R - , 81 - ). - , , 42 - . .

72/ n- ( for)

for . , , .

for (; ; ) {
// , . .
}

- , . Ÿ . (, ).

(, ).

, . , , .

( ). .

( ) , , . , , .

(, , ) .

1 100:

for (int i = 1; i <= 100; i++) {
System.out.print(i + " ");
}

36..

г - . г - , , .

. , . , .

, , .

- , . г, - . - ' . , , , .

:

;

;

;

, .

-, , , .

' :

;

' ;

, , , ;

;

;

.

37. :!, &.

& (AND) ( ) , , , :

1: 0 1 0 1

& 2: 0 0 1 1

1: 0 1 1 1

C ! ( ). , .

:

if(!(grade = = sentineValue))

count << << grade

<< endl;

if(grade!= sentineValue)

count << << grade

<< endl;

 

20.

1.

, ,

.

d = (x − x) + (y − y) + (z − z).

2

.

, ,

, ,

.

3.

, , (de) (dm) . 100 .

4.

, (de) (dm) .

5.

,

,

.

6. ᒺ

ᒺ . ᒺ

ᒺ , ,

.

7.

XY,XZ YZ. , , .

8.

( ).

 

 

21.

    ˳    
           
    ˳
   
             

³ " () , . . Գ . (, '), (, , , , ), (, 02 ), (, ).

 

int 32- . ij - -2147483648 2147483647. , . . 32- , 64- 32- . , byte, short, int , int.

int i;

int j = 0x55aa0000;

26
. ' : :

;

;

.

˳

, , , .

, :

1) ;

2) ;

3) ;

4) .





:


: 2016-10-07; !; : 262 |


:

:

- , 20 40 . - .
==> ...

1853 - | 1806 -


© 2015-2024 lektsii.org - -

: 0.042 .