.


:




:

































 

 

 

 


3.




1. . .

 

( ):

1.! 0!=1

2. && - 1&=1, 0&=0

3. || - 101|=1, 000|=0

, . int (0) (1).
!

:

1. \ ==\!=

2. \ >\<

3. \ >=\<=

4. \ +\-

5. \ *\/ ( %)

6. \ <<\>>

!

, 15 .

1. ()- .

2. [] .

3.. .

4. -> - , .

bool (\; 1\0).

:

&

|

^

~

2. .

 

&-

| -

^ -

~ -

>> << - \

 

, char, short, int, long . .

 

( ). , . & , | , ^ . .

 

3. .

if ()

{ }

 

,

 

:

if ()

{ 1 }

else

{ 2 }

 

, 1 , , 2.

 

1.

if (a>b)

ans=10;

else

ans=25;

 

>b, ans 10, - 0.

 

2.

if (age <18)

{

cout <<" . \n";

cout <<" ";

cin>> grade;

}

 

age<18, grade.

4. while. .

while

:

While ()

{

Return 0

}

while . .

 

while . , while. , , . , . , .

 

while ("") c :

 

while ()

{

}

 





:


: 2016-07-29; !; : 405 |


:

:

- - , .
==> ...

1899 - | 1853 -


© 2015-2024 lektsii.org - -

: 0.008 .