#include #include typedef struct records { int num; int note; } Record; void sortArray(int *number, int n); int main() { int r; Record record[100]; FILE *ptr; if ((ptr = fopen("Ogrenci.dat", "r")) == NULL) { printf("Dosya bulunamadi!"); system("pause"); return 1; } int i = 0; int num=0; int note=0; while (!feof(ptr)) { fscanf(ptr, "%d %d", &num, ¬e); record[i].num=num; record[i].note=note; printf("%d ",record[i].num); printf("%d",record[i].note); printf("\n"); i++; } int recordSize=i; int allNotes[100]; **0; while(i number[j]) { temp = number[i]; number[i] = number[j]; number[j] = temp; } } } }