Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a text file with many columns and rows of values (integer and decimal), I want the C program to find the highest number from each column and print it.


note :It has to work for either text file or excel file at least. even if the solution is found in C++, it will be helpful.

What I have tried:

I have created the C program to read the file and print the contents, but unable to print the highest number from each column.
Posted
Updated 12-Aug-18 15:06pm
v2
Comments
Patrice T 12-Aug-18 22:15pm    
If you want help to fix your code, you have to show it.
Richard MacCutchan 13-Aug-18 3:21am    
Parse each line to get the list of values. Go through the list comparing each vale with a base to find the highest.

1 solution

If you're asking for someone to write the code for you, that's not going to happen. CP is not a "code for hire" service.

If you've got a question about your own code, fine, that we can help with. But you have to spell out what the problem is.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900