#include<stdio.h>
#include<stdlib.h>
#include"linkedlist.h"
main()
{
LinkedList *L;
L=(LinkedList*)malloc(sizeof(LinkedList));
InitLinkedList(L);
CreateLinkedList(L);
TraverseLinkedList(L);
int i;
ElemType e;
printf("input the location and the element you wanna insert:\n");
scanf("%d %d",&i,&e);
InsertLinkedList(L,i,e);
TraverseLinkedList(L);
printf("input the location of the element you wanna delete:\n");
scanf("%d",&i);
DeleteLinkedList(L,i);
TraverseLinkedList(L);
printf("input the element you wanna locate:\n");
scanf("%d",&e);
printf("\nlocation: %d\n\n",LocateElem(L,e));
printf("input the location of the element you wanna get:\n");
scanf("%d",&i);
printf("\nelement: %d\n\n",GetElem(L,i));
printf("thanks for examing\n\npress any key to exit\n");
getch();
}

永乐孤雁
- 粉丝: 0
最新资源
- 如何学好网络营销课程.doc
- 信息系统安全概述.pptx
- 基于单片机的电子密码锁的课程设计.docx
- 数据挖掘的方法有哪些?.pdf
- 汽车单片机与车载网络培训课件.pptx
- 房产项目管理实用表格工具.doc
- 卫星通信系统概述.ppt
- 模板项目管理月报.doc
- 中企动力网络营销.pptx
- 专业会计必备的应的Excel技巧【会计实务操作教程】.pptx
- 数据库原理试卷A(标准答案).doc
- 网络安全入侵检测.ppt
- 最新国家开放大学电大《营销策划案例分析》网络核心课形考网考作业及答案.pdf
- 网络营销理论培训课件.pptx
- 综合布线技术与施工模拟公司制.pptx
- 无线网络WIFI对人们生活影响的调查报告样本.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


