我该如何改变? [英] How do I change this?

查看:52
本文介绍了我该如何改变?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改函数f1中的某些内容以按升序显示存储在数组a中的值

How do I change something in function f1 to displays the values stored in the array a in ascending order

展开 | 选择 | 换行 | 行号

推荐答案

简单,您可以对数组进行排序,并将其显示在0到n-1之间,其中n是数组的大小。
Easy, you can sort the array, and display it from 0 to n-1 where n is the size of the array.


so,which函数f1中的行?
so, which line in function f1 ?


我不知道,它看起来不像你的f1任何东西。我甚至无法说出你的功能是做什么的。顺便说一句,命名你的函数f1可能是你可能做的最糟糕的事情。
I don''t know, it doesn''t look like your f1 sorts anything. I can''t even tell what your function does. By the way naming your function f1 is probably the worst possible thing you could do.


这篇关于我该如何改变?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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