关于为学生分配等级... [英] Regarding Assign Ranks to Student...
本文介绍了关于为学生分配等级...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好......
我有一个问题我需要为学生分配等级我在DataTable中有值,并且我在数组中有相同的值....
例如我想要像下面这样的输出
总计---排名
210 --- 3
300 --- 1 >
250 --- 2
请帮助我.....
在此先感谢.......
Hello Every one...
I have one Question I need assign rank to Students I have values in DataTable as well as i have same vlaues in array....
For Example i want out put like below
Total---Rank
210 --- 3
300 --- 1
250 --- 2
Please Help me.....
Thanks In Advance.......
推荐答案
您可以使用Array.Sort方法(数组,数组) [ ^ ]方法。将''Total''数组作为第一个参数传递,并将原始索引数组(以跟踪它们)作为第二个参数传递。
You might use the Array.Sort Method (Array, Array)[^] method. Passing the ''Total'' array as first argument and the array of original indices (to keep track of them) as second one.
感谢您使用....... .......
但我没有得到必要答案............
thanks for u rly..............
But I didn''t get Required Answer............
这篇关于关于为学生分配等级...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文