.


:




:

































 

 

 

 


.




 

#include <stdio.h>

#include <conio.h>

#define n 80

#define m 0

void main()

{ unsigne char st[n];

int i;

printf( );

gets(st);

i=m;

while(st[i]){

if((st[i]>=a&&st[i]<=z) || (st[i]>=a&&st[i]<=n))

st[i]-=32;

else if (st[i]>=p&&st[i]<=) || (st[i]>=a&&st[i]<=n)) st[i]-=n;

i++;} printf(%s,st);

getch();}

 

1. ?

2. ?

3. ?

 

18

: .

: .

, .

ճ

1. .

. :

ᒺ .

( ) .

.

.

. .

2. , .

3. .

4. .

1. . . .

2. ˳. . . ϳ .

3. . . , 2006.

4. . , . .

5. . , , . ϳ (, ).

6. . , , , . , , 1% .

7. . , , . .

8. . , . .

9. . , . ϳ , , 65% .

10. . , , . .

:

Typedef struct{ char name(30);

float sr_bal;}student;

main()

{

student st[5]; int I;

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

scanf(%s,st[i].name);

scanf(%f,st[i].sr_bal);

}

}

1. ?

2. ?

3. ?

19

: .

: .

 

:

struct Employee { // char name[64]; int age; char ssan[ll]; struct Date { // int day; int month; int year; } hire_date; // int pay_grade; float salary; unsigned employee_number; } new_employee; //

.

, .

new_employee.hire_date.month = 12;

, . . .

ճ

1. .

. :

ᒺ .

( ) .

.

.

 

2. , .

3. .

4. .

1. ( , ϲ, ³, , , , , ( , , , , ).

2. ( , ϲ, , , , , , ( , , , ).

3. ( , , ֳ, , (, ̳, г).

4. ( , , , , (, ̳, г).

5. ( , ( , ʳ ), г , .

6. ( , , (, , , ), .

7. . , , ( , ).

8. ( , , , (, ̳, г)

9. ( , , , , (, , )

10. ( , , , ( , ).

1. ?

2. ?

3. ?

20

: .

: .

, .

ճ

1. .

. :

.

.

.

. , . .

.

2. , .

3. .

4. .

.

:

1. : , , .

 

2. : , , , , .

 

3. : , , , , .

 

4. : , , -, , .

 

5. : , , , , , .

 

6. : , , , , .

 

7. 뺺: , , , .

 

8. : , , , , , .

 

9. : , , , , .

 

10. : , , , , .

 

:

#include<stdio.h>

char *str= ;

main()

{ FILE *fl; int a,b;

fl=fopen(outfile.txt,w);

fprintf(fl,%s,str);

printf( );

scanf(%d%d,&a,&b);

fprintf(fl,a=%d,b=%d,a=b=%d,a,b,a+b);

fclose(fl);}

 

1. ׳ ?

2. ?

3. , fclose()?

4. ?.

 

21

: ᒺ.

: .

, .

ճ

1. .

2. . ᒺ .

1. . 2. .

3. . 4. dz.

5 . 6. .

 

 

7 . 8 .

9. . 10. .

:

#include <graphics.h>

#include <conio.h>

void main(void)

{ int driver=DETECT;

int gmode;

int errorcode;

initgraph(&driver,& gmode,path_to_driver);

errorcode=graphrezalt();

if(errorcode!= grOK)

{printf( %d, errorcode);

getch();

return:} closegraph();}

1. ?

2. driver?

3. gmode?

4. closegraph()?

 

22

: .

: .

˳: .., .. , ++


switch . :

switch () {
case constant1:

break;
case constant2:

break;
case constant3:

break;
...
case constantN:

break;
default

}


. ,

Enter

" ".





:


: 2016-11-12; !; : 295 |


:

:

. .
==> ...

1215 - | 1187 -


© 2015-2024 lektsii.org - -

: 0.045 .