如何使用C编程从文本文件中的每一列中找到最大值? [英] How to find the maximum value from each column in text file using C programming?

查看:156
本文介绍了如何使用C编程从文本文件中的每一列中找到最大值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含许多列和行值(整数和十进制)的文本文件,我希望C程序从每列中找到最高的数字并打印出来。





注意:它至少必须适用于文本文件或excel文件。即使解决方案是在C ++中找到的,也会有所帮助。



我尝试了什么:



我创建了C程序来读取文件并打印内容,但无法打印每列中的最高编号。

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.

推荐答案

如果您要求某人为您编写代码,那就不会发生。 CP不是代码租用服务。



如果您对自己的代码有疑问,那很好,我们可以提供帮助。但你必须说出问题所在。
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.


这篇关于如何使用C编程从文本文件中的每一列中找到最大值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆