go top

qsort

网络释义

  快速排序

比如在C库里实现了一个算法叫做快速排序qsort),为了能让库更加通用,不想在函数中嵌入排序逻辑,而让使用者来实现相应的逻辑,这时就可以使用回调函数方式来实现。

基于247个网页-相关网页

双语例句

  • 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——但那样太老土了。

    youdao

  • Many STL containers let you play the same trick. Most programmers wouldn't call the qsort callback an event, but there's no reason you can't think of it that way.

    借助许多 STL 容器也能实现同样诀窍.大多数程序员不会调用 qsort 回调某个事件没有理由考虑那种方式

    youdao

  • 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 排序对象数组必须提供比较函数。

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定