如何使用C库的qsort功能? [英] How to use qsort function of C library ?
问题描述
我的手册中没有解释清楚。有人可以告诉我
关于它吗?
qsort是最好的排序算法吗?
It is not explained well in my manual. can someone please tell me
about it ?
Is qsort the best sorting algorithm out there ?
推荐答案
我实际上需要对一组顶点进行排序,每个顶点都有x,y,z
坐标,但是我必须根据x
$ b对记录进行排序$ b坐标,y坐标或z。
I actually need to sort a set of vertices each having x, y, z
coordinates but then I have to sort the records according to x
coordinate, y coordinate or z.
pereges< Br ***** @ gmail.comwrites:
pereges <Br*****@gmail.comwrites:
我的手册中没有解释清楚。有人可以告诉我
关于它吗?
qsort是最好的排序算法吗?
It is not explained well in my manual. can someone please tell me
about it ?
Is qsort the best sorting algorithm out there ?
您似乎与发布为broli的人相同。
发布时请使用一致的名称这里。
请将您的问题放在邮件正文中。并非所有
新闻阅读器以一种方式显示主题标题,这样可以很容易地看到。
qsort不是算法,它是由C
标准指定的接口。 qsort的不同实现可以使用不同的
算法。 (该名称最初源自quicksort,但是
没有要求qsort使用quicksort算法。)
-
Keith Thompson(The_Other_Keith)< ks *** @ mib.org>
诺基亚
我们必须做点什么。这是事情。因此,我们必须这样做。
- Antony Jay和Jonathan Lynn,是部长
You appear to be the same person who''s been posting as "broli".
Please use a consistent name when posting here.
Please put your question in the body of the message. Not all
newsreaders show the subject header in a way that makes it easy to
see.
qsort is not an algorithm, it''s an interface specified by the C
standard. Different implementations of qsort can use different
algorithms. (The name was originally derived from "quicksort", but
there''s no requirement for qsort to use the quicksort algorithm.)
--
Keith Thompson (The_Other_Keith) <ks***@mib.org>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
pereges< Br * **** @ gmail.com写:
pereges <Br*****@gmail.comwrites:
我的手册中没有解释清楚。有人可以告诉我
关于它吗?
qsort是最好的排序算法吗?
It is not explained well in my manual. can someone please tell me
about it ?
Is qsort the best sorting algorithm out there ?
我忘了提及,有一些使用qsort()的例子在第13节
的comp.lang.c FAQ,< ; http://www.c-faq.com/> ;.
-
Keith Thompson(The_Other_Keith)< ks *** @ mib.org>
诺基亚
我们必须做点什么。这是事情。因此,我们必须这样做。
- Antony Jay和Jonathan Lynn,是部长
I forgot to mention, there are examples of using qsort() in section 13
of the comp.lang.c FAQ, <http://www.c-faq.com/>.
--
Keith Thompson (The_Other_Keith) <ks***@mib.org>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
这篇关于如何使用C库的qsort功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!