学生通迅录管理_c语言课程设计
时间:2025-03-10
时间:2025-03-10
程序代码
/******头文件(.h)***********/ #include <stdio.h> /*I/O函数*/ #include <stdlib.h> /*标准库函数*/ #include <string.h>/*字符串函数*/ #include <ctype.h> /*字符操作函数*/ #define M 50 /*定义常数表示记录数*/ typedef struct /*定义数据结构*/ { char cla[8];/*班级*/
char num[15];/*学号*/ char name[20]; /*姓名*/
char qq[12]; /*QQ*/ char tel[15]; /*电话*/ }STUDENT;
/**********************************
基础函数声明
*********************************/
int enter(STUDENT t[],int n); /*********************通迅录建立函数声明***********************/ int menu(); ***********************/ void print(STUDENT temp);
/*********************主菜单函数声明
输加出
函函
数数
声声
明明
/*********************
增
***********************/
int add(STUDENT t[], int n); /********************************************/
void change(STUDENT s[],int ***********************/ int del(STUDENT t[],int n);
n);
/*********************修改函数声明
删
除
函
数
声
明
/*********************
***********************/
void file_in(STUDENT t[],int ***********************/ int file_out(STUDENT t[]);
n);/*********************保存函
加
载
函
数
数声明声
明
/*********************
***********************/
int find_name(STUDENT t[],int n);/*********************姓名查找函数声明***********************/
int find_num(STUDENT t[],int n);/*********************学号查询函数声明***********************/
int find_qq(STUDENT t[],int n); /*********************QQ
查询函数声明
***********************/
int find_tel(STUDENT t[],int n); /*********************电话号码查询函数声明***********************/ int search(STUDENT t[],
int
n); /*********************查询函数声明
***********************/
int search_menu(STUDENT t[], int n);/*********************查询菜单函数声明***********************/
下一篇:年度考核教师个人工作总结述职