数据结构习题!跪求答案

[复制链接]
查看11 | 回复2 | 2012-6-30 18:16:32 | 显示全部楼层 |阅读模式
#include #include typedef struct lnode{int data; struct lnode *next;}lnode,*linklist;linklist listinsert_l(linklist l,int i,int e){linklist p,s;int j;p=l;j=0;while(p&&jnext;++j;}if(!p||j>i-1)exit(0);s=(linklist)malloc(sizeof(lnode));s->data=e;s->next=p->...
回复

使用道具 举报

千问 | 2012-6-30 18:16:32 | 显示全部楼层
typedef struct node{int data;struct node *next;}Elemsn;viod deleteNode(Elemsn *h,int i){int j;Elemsn *p,*q;for(j=1,p=h->next;p&&jnext);q=p...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行