0

Hello everyone,
I wrote a c program in order to write 5 students records (name, ID and average)
to a file.
Now the difficult step is to firstly to find the highest average among students.
Have anyone any clue how I can do this?

Thank you

4
Contributors
5
Replies
7
Views
6 Years
Discussion Span
Last Post by WaltP
0

why don't you share your code, so that i can modify it to give required result.

0

What function have you use to write the data into the file...need to know a lot about code to answer this.
Post your code.

0

why don't you share your code, so that i can modify it to give required result.

Yes, the Original Poster (OP) should share his code, but you do not modify it to get it to work. We do not approve of cheating. You can give suggestions on how to fix the code, but it's the OP's job to modify it to give the required result.

-1

Of course, iwould not modify it. But to give suggestion i would need to the code.

e.g. whether OP has use fprintf or fwrite...........depending on it I would suggest fsanf or fread

1

Of course, iwould not modify it. But to give suggestion i would need to the code.

e.g. whether OP has use fprintf or fwrite...........depending on it I would suggest fsanf or fread

Stop responding to posts just to respond. I did not quote you, therefore I was not talking to you.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.