.


:




:

































 

 

 

 


, ctype.h




, :
isalnum(c)
isalpha(c)
isdigit(c)
islower(c)
isupper(c)
isspace(c) (' ', '\t', '\r',' \n', '\v', '\f')
isxdigit(c) 16-

 

( ) , .

1. ; .

2. . :

 

++; //

/* */

 

3. , , , - .

4. , :

/*

*

*

*/

int a; //

char str[50]; //

float b; // , b

 

: , .

5. :

fun (int a)

/* */

{

...

}

, .

/* */

fun (int a)

{

/* ,

** ,

*/

}

6. .

for (i = 0; i <= 10; i++){

while (a > b){

...

} // while (a > b)

} // for (i = 0; i <= 10; i++)

 

7. .

8. . .

9.

/*-----------------------------------------------------------------*/

.

10. .

- .

- , .

- (.. ), . , .

- e . "+", "". , . : + " ", + " ".

- , : *p, a--, f(arg, arg) ->, /++ . p->msg(), obj.msg().

- .

11. , : , - .

:

void f(void) void f(void)

{ {

if (x) if (x)

yyy(); yyy();

more_cod(); more_cod();

even_more_code(); even_more_code();

} }

12. . :

if (i)

one();

else

two();

 

13. ,

f()

{

int local_var;

int another_local_var;

code;

}

 

14. ( ).

15. (, ) , , .

. 3

. 3

. 4

1 .. 6

2 -.. 7

3 .. 9

4 .. 11

5 13

6 ... 15

7 .. 16

8 .. 18

9 ... 19

10 ... 21

11 .. 22

12 M ... 24

.. 25

.. 31

 





:


: 2016-10-23; !; : 709 |


:

:

, , .
==> ...

1888 - | 1527 -


© 2015-2024 lektsii.org - -

: 0.009 .