说明:自己做的以个c++代码:
#include
#include
struct node
{
int num, score;
struct node* link;
};//结点类型声明
node* creat(int n);//链表生成函数,尾插法
void print(node* h);//输出链表
node* index(node* h)//对单链表按从小到大的顺序进行排序
{
int i = 0;
if (h == 0 || h->link == 0)//排除链表只有一项或零
<qq_27014153> 上传 | 大小:832byte