.


:




:

































 

 

 

 


ascii 7




 

pupils, 50 pupil.

"ѳ" . .

". ", ,

 

pupils[1].class=3;

pupils[1].borndate.day=5;

pupils[1].borndate.month=4;

pupils[1].borndate.year=1982;

 

1. , , , . .

 

#include <stdio.h>

main()

{struct date {int day;

int month;

int year;};

/* date : , , */

Struct person {char surname[20];

char firstname[20];

struct date f1;};

/* person */

struct person ind1;

printf("\nPlease input through the spaces surname, firstname, day,\nmonth and year of born of person ind1\n");

/* , ', , */

scanf("%s %s %d %d %d", ind1.surname,ind1.firstname,&ind1.f1.day,&ind1.f1.month,&ind1.f1.year);

printf("\nInformation about person ind1\n");

/* */

printf("Surname %s\tFirstname %s\n",ind1.surname,ind1.firstname);

printf("Year of born %d\n",ind1.f1.year);

printf("Month of born %d\n",ind1.f1.month);

printf("Day of born %d\n",ind1.f1.day);

}

 

2. 9 : , , . .

 

#include <stdio.h>

main()

{struct motor {int power,velocity;

char type[30];} motor1[10];

/* motor1 10 , */

/* */

int i,j,k,clue;

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

printf("Input information about motor%d and clue (0 for escape,\nanother integer - continue)\n",i);

/* - (0 , - */

printf("Input type of motor\t"); /* */

scanf("%s",motor1[i].type);

printf("Input power of motor\t"); /* */

scanf("%d",&motor1[i].power);

printf("Input velocity of motor\t"); /* */

scanf("%d",&motor1[i].velocity);

printf("clue\t");

scanf("%d",&clue);

k=i;

if (!clue) break;}

/* */

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

printf("\nWhich motor do you want to receive information about?\ninput integer from 0 to 9\n");

/* ? 0 9*/

scanf("%d",&j);

if (j>k) {printf("There is no information about this motor\n");

continue;}

/* */

printf("Type of motor\t%s\n",motor1[j].type);

printf("Power of motor\t%d\n",motor1[j].power);

printf("Velocity of motor\t%d\n",motor1[j].velocity);

printf("Input clue");

scanf("%d",&clue);

if (!clue) break;}

}

 

 

2.

"Ѳ", .

2.1. "", "", "'", " ". "" "", " ", "ϳ". 4 . , , : 1) , 4.5, 4; 2) , 3, 3.5.

2.2. "", "", "'","-". "" "", " ", " ". 4 . - , 25 , , , , .

2.3. "", "","", "' ", "". "" " ", "", "ʳ ". 4 . 䳿, , : 1) 3; 2) 2000 .

2.4. "", "̳", ""," ". "" "", "", "' ". 4 . , , , .

2.5. "ϲ", "","'", " ". "ϲ" "", " " (, , ), "" (, , ). 4 . , : 1 , 1.5 , 2 .

2.6. "ϲ", "", "'"," ". "ϲ" "", "ʳ ", "ʳ " ""," ". 4 . , , : 1) 50; 2) " " 3; 3) .

2.7. "", "ʳ ", "ʳ ","ʳ ". "" "", "", " ", "ֳ". 4 . : .

2.8. "", "", "", "", "ֳ". "" "", "ֳ ", "ֳ ", "ֳ ". 4 . , , .

2.9. " ", "", " ", "ᒺ ", "ֳ". " " "", "ij ", " ". 4 . , ᒺ , , .

2.10. "", "", "", "³". " " "", " ", " ", "ѳ ", "ij". 4 . , . , . 20%, , 10% 쒿.

3. Ͳ

 

3.1. .

3.2. .

3.3. .

3.4. .

 


15





:


: 2016-10-22; !; : 347 |


:

:

,
==> ...

1689 - | 1566 -


© 2015-2024 lektsii.org - -

: 0.01 .