background image

#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>

enum Sex{male,famale};                              //性别分类,默认 0 为男,1 为女
enum Education{high,bachelor,master,docter,other};  //学历分类,默认 0 开始
double Salary={0.0};                                //工程师薪水
unsigned int EngineerMonthWorkDays={0};             //工程师工作天数
int n=0;                                            //计数
int EngineerMonthBenefit;                           //月效益
int EngineerMonthInsurance;                         //

            

月保险金

struct DateStruct

            //日期结构,用于存储工程师的出生生日

{      

 

 int year;
 int month;
 int day;

};
struct EngineerStruct           //声明存储工程师信息的结构体
{

unsigned int EngineerNo;

   //工程师编号

char EngineerName[20];

   //工程师姓名

unsigned int EngineerSex;

   //工程师性别

struct DateStruct  EngineerBirth;  //工程师生日
char EngineerHometown[10];

   //工程师籍贯

unsigned int EngineerEducation;    //工程师学历
char EngineerAddress[30];

   //工程师地址

char EngineerPhone[15];

   //工程师电话

unsigned int EngineerWorkYears;    //工程师工龄
float EngineerBaseSalary;

   //工程师基本薪水

struct EngineerStruct *next;

};

void menu()                    //显示菜单
{
    printf("-------------------------------------------------------\n");
    printf(":                 

              

软件测试工程师管理系统

:\n");

    printf("-------------------------------------------------------\n");
    printf("\n");
    printf("1.输入软件测试工程师资料\n");
    printf("2.删除指定测试工程师资料\n");
    printf("3.查询软件测试工程师资料\n");
    printf("4.修改软件测试工程师资料\n");
    printf("5.计算测试工程师的月薪水\n");