教师工资管理系统C语言
#include<
stdio。h
〉#include<
conio。h
〉#include<
stdlib.h
〉#include<
string。h
>typedef
struct
teacher{
char name[32];
char unit[32];
char sex[4];
char address[32];
long
number,phone
;float salary,allowance,tax,call,waterandele,rent,clean,gong,koukuan,total;
struct
teacher *next;
}TEACHER; //
节点的结构体
,包含数据和指针
。TEACHER *head;//
头节点void init() //
初始化头节点并从文件中读取数据存入链表
{head=(TEACHER *)
malloc
(sizeof
(TEACHER));
head->next=NULL;
FILE *
f_p;if((
f_p=fopen
("teacher.txt”,”a
+”)) != NULL)
{fse ...


雷达卡


京公网安备 11010802022788号







