本文通过STL类库的list数据结构来完成学生管理系统,采用链表外排序,通过函数指针实现。 注意:此时排序规则函数定义为类静态成员函数,等价于全局函数 函数指针定义为 BY_FUNC ps[] = { CStudent::byNumb,CStudent::byName,CStudent::byMath }; C++中定义CStudent类 文件名:Student.h #pragma once #include <list> typedef struct SUser { int nNumb