#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define F -1
#define T 1
struct Address
{
char name[20];
char number[12];
char address[20];
struct Address* next;
};
typedef struct Address* node;
int init(node* head);
int creat_tail(node head);
int insert_index(node head);
int length(node head);
int query_name(node head);
int delete_address(node head);
void print(node head);
int main()
{
node head;
init(&head);
int x;
do
{
printf("0: exit\n");
printf("1: creat_tail\n");
printf("2: insert_index\n");
printf("3: query_name\n");
printf("4: delete_address\n");
printf("5: print\n");
printf("please select\n");
scanf("%d", &x);
switch(x)
{
case 0:
exit(0);
case 1:
cre
用c语言链表实现通讯录
最新推荐文章于 2025-06-28 10:15:42 发布