1. 首页
  2. 编程语言
  3. 其他
  4. 数据结构线性表的基本操作

数据结构线性表的基本操作

上传者: 2018-12-26 00:21:20上传 C文件 4.74KB 热度 21次
线性表的应用包括基本操作单链表中的数据按照从小到大的顺序排列,算法如下: PaiXu_L(lnode *l) { linklist pl,ql,a; int shu; for(pl=l->next;pl->next!=NULL;pl=pl->next) { a=pl; for(ql=pl->next;ql;ql=ql->next) if(ql->datadata) a=ql; if(a!=pl) { shu=pl->data; pl->data=a->data; a->data=shu; } } return(l); }
下载地址
用户评论