1、编程实现单链表的建立、插入、删除和查找算法,语言采用C或JAVA等。

[复制链接]
查看11 | 回复3 | 2008-12-21 01:48:07 | 显示全部楼层 |阅读模式
/*P33用头插法建立带头结点的单链表*/#include "stdio.h"#define NULL 0#define LEN sizeof(linklist)typedef struct node{int data; struct node *next;}linklist;linklist *head;void hhead_creat()/*用头插法建立带头结点的单链表*/{int x; linklist *p; head=(struct node*)malloc(LEN); head->data=-999; head->next=NULL; printf("\n\n\t\t请随机输入...
回复

使用道具 举报

千问 | 2008-12-21 01:48:07 | 显示全部楼层
sdgfn;ksdg再看看别人怎么说的。...
回复

使用道具 举报

千问 | 2008-12-21 01:48:07 | 显示全部楼层
sdgfn;ksdg...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行