.


:




:

































 

 

 

 


7.




ü , - , (char str[80], char * S1). (str[2], S1[i]), ( ), (*(str+2), *(S1+i)). .

ü , , , , , , - <ctype.h>.

ü \0, .

ü ++, , <string.h>. :

ü char College []=Computer Sciences, F[]=Faculty of ;

char * p, * r=;

int n;

 

n= strlen(College); n=17
r=strcat(F, College); r=Faculty of Computer Sciences
r=strncat(F, College, 8); r=Faculty of Computer
strcpy(r, College); r= Computer Sciences
strncpy(r, College, 8); r= Computer
p=strchr(College, S); p=Sciences
p=strrchr(College, e); p=es
p=strstr(College, put); p=puter Sciences
p=strupr(Happy New Year); p= HAPPY NEW YEAR
p=strlwr(Happy New Year); p=happy new year
p=strrev(retupmoc); p=computer
n=strcmp(Funny,funny); n=-32
n=strcmp(funny, Funny); n=32
n=strcmp(Funny, Funny) n=0
n=stricmp(funny, Funny); n=0 ( )

 

ü - , () , , .

={ | | } , , { | | }

ü ( : , , ).

ü , .

ü .

ü , . , .

ü , , 80 , , enter .

ü - .

7.1

, :

) (3 );

) , (+1 );

) (+1 ).

7.2

, :

) (3 );

) , (+1 );

) , (+1 ).

7.3

, :

) (3 );

) + (+1 );

) , (+1 ).

7.4

, :

) (3 );

) , , (+1 );

) , , (: ) (+1 ).

7.5

, :

) (3 );

) , (+1 );

) , (+1 ).

7.6

, :

) (3 );

) , (+1 );

) , , (+1 ).

7.7

, :

) (3 );

) , (+1 );

) , 0 9 , , (+1 ).

7.8

, :

) (3 );

) , (+1 );

) , -, (+1 ).

7.9

, :

) (3 );

) (+1 );

) , , (+1 ).

7.10

, :

) (3 );

) , , , (+1 );

) (+1 ).

7.11

, :

) (3 );

) (+1 );

) , (+1 ).

7.12

, :

) (3 );

) , (+1 );

) , (+1 ).

7.13

, :

) (3 );

) , 0 5 (+1 );

) , , (+1 ).

7.14

, :

) ,

(3 );

) - (+1 );

) , , (+1 ).

7.15

, :

) (3 );

) , (+1 );

) , , (+1 ).

7.16

, :

) (3 );

) , (+1 );

) , , , (+1 ).

7.17

, :

) (3 );

) (+1 );

) , (+1 ).

7.18

, :

) (3 );

) , (+1 );

) , (+1 ).

7.19

, :

) , (3 );

) , (+1 );

) , , (+1 ).

7.20

, :

) (3 );

) , (b oo k, pa ss, expre ss, , ) (1 );

) , , (+1 ).

7.21

, :

) (3 );

) , (+1 );

) , , (+1 ).

7.22

, :

) 060 * (3 );

) (+1 );

) , ASCII- (+1 ).

7.23

, :

) (, 123.) (3 );

) , ing (+1 );

) , , , (+1 ).

7.24

, :

) (3 );

) , ( ) (+ 1 );

) , , , , , - (+1 ).

7.25

, :

) (3 );

) , (+1 );

) , , (+1 ).

7.26

, :

) (3 );

) , (+1 );

) , (+1 ).

7.27

, :

) (3 );

) , (+1 );

) , (+1 ).

7.28

, :

) (3 );

) , (+1 );

) , ( 1 0, b a, a z, 0 9 ) (+1 ).

7.29

, :

) (3 );

) , (+1 );

) , (+1 ).

7.30

, :

) (3 );

) , (+1 );

) , ( ) (+1 ).

 





:


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


:

:

,
==> ...

2079 - | 1905 -


© 2015-2024 lektsii.org - -

: 0.042 .