Commit 102b6d5b by rakein

Upload new file

parent 1f2b7133
Showing with 37 additions and 0 deletions
#include "structid.h"
#include "funktsioonid.h"
void kaalutud(grades *n, stud *m, int, int);
grades *Readgrades(int*, char*);
stud *Readstudents(int*, char*);
void arvutus(stud *m, int);
void funC1(stud *m, int);
void reset(stud *m, int);
int main(void)
{
int nrStud;
int nrGrades;
char fail1[] = {"grades3.txt"};
char fail2[] = {"stud.txt"};
grades *n=Readgrades(&nrGrades,fail1);
stud *m=Readstudents(&nrStud,fail2);
reset(m, nrStud);
kaalutud(n, m, nrGrades, nrStud);
arvutus(m, nrStud);
funC1(m, nrStud);
free(n);
free(m);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment