单链表的建立
来源:互联网 发布:mac苹果商店里游戏 编辑:程序博客网 时间:2024/04/30 00:14
#include <stdio.h>
#define null 0
typedef struct node
{int data;
struct node*next;
}slnode;
void*initiate(slnode**h)
{*h=(slnode*)malloc(sizeof(slnode));
(*h)->next=null;
}
slnode append(slnode*p,int x)
{slnode*s;
s=(slnode*)malloc(sizeof(slnode));
s->data=x;
s->data=p->next;
p->next=s;
}
main()
{int i,x;
slnode *p;
initiate(&p);
for(i=1;i<4;i++){
printf("ch%d=",i);
x=getchar();
getchar();
append(p,x);
printf("point ch%d=%c/n",i,x);
}
}
- 单链表的建立
- 单链表的建立
- 单链表的建立
- 单链表的建立
- 循环单链表的建立
- 单链表的建立程序
- 单链表的建立
- 单链表的建立
- 建立排序的单链表
- 单链表的建立
- 有序单链表的建立
- 单链表的建立
- 单链表的建立
- 单链表的建立
- 单链表的建立
- 单链表的建立
- 单链表的建立
- 单链表(单链表的建立)
- 如何过滤非法IP地址的用户发送请求
- Linux发行版图标大全
- 二叉链表
- JAVA四种基本排序
- 2007年6月3日,通宵!
- 单链表的建立
- 锁硬盘逻辑盘程序
- 接口是什么?
- 螺旋方阵
- 道有万千,我取其一
- session对象机制--很详细
- asp中获取多个checkbox的值及改变其状态
- 浏览器JavaScript支持的实现的一般方法(转)
- C的数据库编程