没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
#include "stdio.h"
typedef char ElemType;
typedef struct Node /*单链表结点*/
{
ElemType data; /*数据域*/
struct Node *next; /*指针域*/
}Node;
main()
{
Node *newlist();
void *threeList(Node *);
Node *m,*h;
clrscr();
h=newlist();
m=h;
printf("The old list:");
while(m->next!=NULL)
{
printf("%2c",m->next->data);
m=m->next;
}
printf("\n");
threeList(h);
getch();
}
Node *newlist() /*新建链表函数*/
{
Node *h,*l,*a;
typedef char ElemType;
typedef struct Node /*单链表结点*/
{
ElemType data; /*数据域*/
struct Node *next; /*指针域*/
}Node;
main()
{
Node *newlist();
void *threeList(Node *);
Node *m,*h;
clrscr();
h=newlist();
m=h;
printf("The old list:");
while(m->next!=NULL)
{
printf("%2c",m->next->data);
m=m->next;
}
printf("\n");
threeList(h);
getch();
}
Node *newlist() /*新建链表函数*/
{
Node *h,*l,*a;
资源评论
- efang1112012-10-19值得看一看,写的很简洁
wjf8882300
- 粉丝: 56
- 资源: 19
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功