Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
rakein
/
iag0582
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
102b6d5b
authored
Apr 26, 2017
by
rakein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload new file
parent
1f2b7133
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
tudengidd/tdngYl.c
tudengidd/tdngYl.c
0 → 100644
View file @
102b6d5b
#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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment