qsort

  • 网络快速排序;快速排序法
qsortqsort
  1. To Invoke an Application-Supplied Algorithm The C runtime library function qsort sorts an array of objects , but you must supply the function that compares objects .

    调用应用程序提供的算法:C运行时库函数qsort排序对象数组,但你必须提供比较函数。

  2. You could use a typedef to define a callback and make clients supply it , something similar to qsort & but that 's so old-hat .

    你可以用typedef来定义一个回调并让客户机来提供这个回调,这种做法有些类似qsort&但那样太老土了。