req求助,程序,最大,分钟 [英] req help please, with program, max, min
问题描述
我遇到了这个程序的问题,我整个星期都试图这样做而且卡住了。我正在编写一个程序,它将从输入文件中获取十个值,找到max和min然后将它们打印到输出文件。我已经设法打开并输入值,并打印出来,我写了一个程序,它将找到十个值的最大值和最小值,但这是在程序中。我需要在int行中转换10个值,并将它们更改为已经扫描的''val''值。我该怎么做。
感谢您的支持帮助
I am having a problem with this program, I have been trying to do it all week and am stuck. I am writing a program that will take ten values from an input file, find the max and min then print them to an output file. I have managed to open and input the values, as well as print them out, I have wrote a program that will find the max and min of ten values, but this is in the program. I need to turn the 10 values at the int line, and change them to the ''val'' values that have been scaned in. how do i do this.
Thanks for your help
推荐答案
为什么不在您确定最大值的循环中包含数据读取和最小值,例如
why not include the reading of your data in the loop where you determine the maximum and minimum values, e.g.
我仍然有点困惑,如何通过循环使用[1]读取下一个值。我只是真的很混淆这种C语言。大声笑。
I am a bit confused still, how will i get it to read the next value in with a[1] with the loop. am just realy confused with this C language. lol.
我仍然有点困惑,我将如何通过[1]读取下一个值环。我只是真的很混淆这种C语言。大声笑。
I am a bit confused still, how will i get it to read the next value in with a[1] with the loop. am just realy confused with this C language. lol.
in
这篇关于req求助,程序,最大,分钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!