C Program for sorting teams
Hey guys. I'm new in programming in general so I need some help. Basically, I'm still practicing before my 'exams' and I got a task to make a program in which we are using files and structures and it says that we have a file which contains rows of data about volleyball players (first name, last name, points, name of the team). The first part of the task is to find the player with most points scored and to print his name and score. I have done this part already.
The second part which I have problems with is to find team with most points. So, as said in the task, we get files and cannot see how many players there are, or count how many teams there are etc. Also, there are more than one players of the same team in the file, so I have to find sum of all players' scores and I have to divide it by teams. Team names are given as strings.
I hope I explained everything. I'm not a native English speaker so if I made some mistakes, forgive me :) :)
EDIT: I don't want you to do whole task for me, just the code for the team score part. TY :)
EDIT#2: Ye, nooo, sorry, what I meant there is just tell me how to do it, you don't have to do it for mee LOL