c语言通讯录编写

来源:百度知道 编辑:UC知道 时间:2024/06/21 18:36:21
要求查询名字 城市 班级
“陈”“重庆”“一班”

#include <string.h>
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>//包含system函数头文件
#define LEN sizeof(struct student)
struct student
{
char num[20];//ID号码
char name[100];//用户姓名
char phone[20];//电话号码
char home[100];//通讯地址
char birthday[20];//出生日期
struct student *next;
};
void face(void)//功能选择面板
{
printf("********************************************************************");
printf("\t\t\t\t☆★☆★☆★ ~_~ ~_~ ~_~ ☆★☆★☆★\n");
printf("\n\t\t\t☆★欢迎使用阿冬子通讯录☆★");
printf("\n\n\t☆★选择你需要操作的功能:☆★(现无记录,建议先填加记录)★☆\n");
printf("\n");
printf("\t\t\t1.【增加通讯录信息〗\n");
printf("\t\t\t2.〖显示通讯录中所有记录】\n");