求大神帮忙解决一下这个 万分感谢

一只吃草的狼 2014-06-28 04:15:24
现有一组数据,类型定义如下:
typedef struct Node{
int index1;
int index2;
int data;
}NODE;
其中有两个索引数据,index1和index2,它们都是唯一的。
请根据索引index1和index2,设计两个链表,分别按照索引index1和index2的值非递减的链接在一起。

实现链表的初始化、插入、删除。其中删除是根据索引index2,且对两个链表都有影响。
/*初始化链表*/void InitList();
/*插入节点*/void InsertList(int index1, int index2, int data);
/*删除节点*/void DeleteList(int index2);


定义链表:
typedef struct NodeList{
struct NodeList *next1;
struct NodeList *next2;
NODE node;
}NODELIST;
...全文
132 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
707wk 2014-06-29
  • 打赏
  • 举报
回复
http://pan.baidu.com/s/17yIcQ在这堆代码中找吧。。。有你想要的
max_min_ 2014-06-29
  • 打赏
  • 举报
回复
画图,然后根据思路把流程用伪代码写出来就好
一只吃草的狼 2014-06-29
  • 打赏
  • 举报
回复
我没有思路,不知道该怎么去整
FightForProgrammer 2014-06-28
  • 打赏
  • 举报
回复
额。。。自己不动手怎么帮你弄?

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧