数据结构课程设计--通讯录的制作

来源:百度知道 编辑:UC知道 时间:2024/05/22 18:18:01
我急需数据结构课程设计--通讯录的制作的开发文档,有哪位高手帮帮我啊!!!!
我要开发文档啊!!主要是程序的总体结构,模块化分,数据结构设计等!!

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define NULL 0
#define LEN sizeof(LNode)
int length;
int seat;

typedef struct LNode{
int number;
int telenum;
char name[20];
struct LNode *next;
}LNode,*LinkList;
//用于通讯录结点

void printList(LinkList L){ // 打印头结点地址为L的通讯录
printf("\n ---------------------------------------\n");
printf(" Number Name TelephoneNo.\n");
printf(" -----------------------------------------\n");
LinkList p=L;
int n=1;
if(L->next==NULL) printf("该链表中没有元素\n");
else
while(p->next !=NULL){
printf(" %2d %-9d",n,p->next->number);
printf(" %-7s %d\n",p->next->name,p->next->telenum);
p=p->next;
n++;
}