基本排序方法实现:选择排序、插入排序、希尔排序

三个基本排序问题的实现,先给出几个公用的比较函数、元素交换函数和显示函数。html #include <iostream> using namespace std; #define ElementType char bool lessFunc(ElementType cur, ElementType ref) //比较函数 { return cur < ref; } void exch(
相关文章
相关标签/搜索