include stdio struct Name char 20 char 20 char 20 char St 20 char sc 2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include<stdio.h>
struct Name{
char F[20];
char N[20];
char S[20];
char St[20];
char sc[20];
};
struct Numb{
int Nd;
int Nk;
int Bl;
};
struct Uchastnik{
struct Name nm;
struct Numb nb;
};
int main(void){
FILE * f;
f=fopen("input.txt","r");
struct Uchastnik uc[20];
char s1[20];
int i=0,j=0;
while (!feof(f)){
j=0;
while (s1[j]!='\n'){
fscanf(f,"%c",&s1[j]);
j++;
}
i++;
}
//printf("%c",(uc[i].nm.F));
puts(s1);
j=0;
return 0;
}