帮助解决一维数组问题...在编程中起初作用 [英] Help with1d array question...im a begginer in programing

查看:85
本文介绍了帮助解决一维数组问题...在编程中起初作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编写一个可以确定一维数组以及最小值中的最小值的程序

Write a program that can determine the minimum value in a 1D array as well as the

array下标.带有值:

array subscript for this array element. With the values:

9,0,-3,12,-8,5,2

9, 0, -3, 12, -8, 5, 2

10,-82、93、3,-56、100、4、9

10, -82, 93, 3, -56, 100, 4, 9

附加要求:

编写一个函数,该函数接收一个SINGLE数组和该数组中的元素数并打印该数组,因此返回类型将为

Write a function that receives a SINGLE array and the number of elements in the array and prints the array, so the return type will be

编写一个函数,该函数接收一个SINGLE数组,该数组中的元素数,可以在数组中存储最小值的变量的地址以及可以存储该数组的变量的地址.数组中最小值的数组索引;返回类型将为

Write a function that receives a SINGLE array, the number of elements in the array, the address to a variable that can store the minimum value in the array, and the address to a variable that can store the array index of the minimum value in the array; the return type will be

示例输出

第一个数组是:

9、0,-3、12,-8、5、2

9, 0, -3, 12, -8, 5, 2

数组的最小元素是-8.

The smallest element of the array is -8.

它位于位置4.

第二个数组是:

10,-82、93、3,-56、100、4、9

10, -82, 93, 3, -56, 100, 4, 9

数组的最小元素是-82.

The smallest element of the array is -82.

它在位置1.

void.

推荐答案

这是一项家庭作业.如果我们为您完成了这项工作,您难道不认为您的老师会注意到您不知道如何去做,因此是否更有能力做下一份分配给您的工作?

This is a homework assignment.  If we did it for you, don''t you think your teacher would notice that you didn''t understand how to do it, and were therefore all the more incapable of doing the next piece of work assigned to you ?

现在人们真的在C语言中玩游戏吗?对于初学者 ?我很难相信.

do people really run clases in C nowadays ? For beginners ? I find that hard to believe.


我可以看到有人在绝望中如何发布这样的内容.我想让您了解的是,出于您自己的利益,我们将不予回答.如果您尝试自己进行操作并陷入某个特定的问题上并发布求助信息,我将第一个回答,因为我将帮助您理解问题.如果我只是发布答案,那将是在剥夺您学习课程的机会.

I can see how someone might post something like this in a moment of desperation.  What I''d like you to understand is that it''s for your own good that we won''t answer this.  If you try to do this yourself and get stuck on a specific point and post asking for help, I''ll be the first to answer, because I''ll be helping you to understand the problem.  If I just posted the answer, I''d be robbing you of the chance to learn from your course.


我明白我的病情很严重,谢谢你,我还是拼命地谢谢你.
i understand ill take off the post thank you i was just desperate thank you anyways.


这篇关于帮助解决一维数组问题...在编程中起初作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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