Click here to Skip to main content
13,739,366 members
Rate this:
 
Please Sign up or sign in to 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 12-Aug-18 14:34pm
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180920.1 | Last Updated 12 Aug 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100