#include <stdio.h> int main() { FILE *P=fopen("spusok.txt","r"); if (P == NULL) { perror("Unable to open file!"); return 1;} struct students { char surname[100]; char name[100]; int data; int marks[100]; }; struct students list[1000]; int symb; while((symb = getc(P)) != EOF) { fscanf(P,"%s %s %d %d",list[symb].surname,list[symb].name,list[symb].data,list[symb].marks); symb++; } printf("---------------------------\n"); printf("%s %s %d %d",list[0].surname,list[0].name,list[0].data,list[0].marks); return 0; } Код #include <stdio.h> int main() { FILE *P=fopen("spusok.txt","r"); if (P == NULL) { perror("Unable to open file!"); return 1;} struct students { char surname[100]; char name[100]; int data; int marks[100]; }; struct students list[1000]; int symb; while((symb = getc(P)) != EOF) { fscanf(P,"%s %s %d %d",list[symb].surname,list[symb].name,list[symb].data,list[symb].marks); symb++; } printf("---------------------------\n"); printf("%s %s %d %d",list[0].surname,list[0].name,list[0].data,list[0].marks); return 0; }