吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 3048|回复: 43
收起左侧

[C&C++ 原创] C++校园疫情防控系统

  [复制链接]
Eks6666 发表于 2023-8-12 13:40
[C++] 纯文本查看 复制代码
#include<iostream>
#include<string>
#include<fstream>
using namespace std;
class people {
public:
    string number; //编号
    string name;//姓名
    string card;//身份证
    string id;//身份 
    string gender;//性别 
    string id_1 = "-1";//工号
    string id_2 = "-1";//学号
    string group;//民族
    string origin;//籍贯 
    string birth;//生日
    string unit;//二级单位
    string phone;//电话号码
    string learn;//文化程度
    string marry;//婚姻 
    string city;//城市
    string street;//街道
    string neigh;//社区
    string neigh_number;//门牌号
    string healthy;//健康
    string covid;//有无新冠症状 
    string covid_hea[100];//新冠症状 
    string covid_peo[100];//密接 
    string write_name;//填报人名字
    string write_data;//填报日期
    string write_phone;//填报人电话
    string note;//备注
    void in(people peo[], int len) { //传入peo数组(没有把地址传进来)和len 
        cout << "编号";
        cin >> number;
        cout << "姓名";
        cin >> name;
        cout << "身份证";
        cin >> card;
        for (int x = 1; x <= len; x++) {
            if (peo[x].card == card) {
                cout << "身份证重复" << endl;
                return;
            }
        }
        cout << "身份(教职或学生)";
        cin >> id;
        cout << "性别";
        cin >> gender;
        if (id == "教职") {
            cout << "工号";
            cin >> id_1;
        }
        else {
            cout << "学号";
            cin >> id_2;
        }
        cout << "民族";
        cin >> group;
        cout << "籍贯";
        cin >> origin;
        cout << "生日";
        cin >> birth;
        cout << "二级单位";
        cin >> unit;
        cout << "电话号码";
        cin >> phone;
        cout << "文化程度";
        cin >> learn;
        cout << "婚姻";
        cin >> marry;
        cout << "城市";
        cin >> city;
        cout << "街道";
        cin >> street;
        cout << "社区";
        cout << neigh;
        cout << "门派号";
        cin >> neigh_number;
        cout << "健康状况";
        cin >> healthy;
        cout << "有无新冠症状";
        cin >> covid;
        cout << "密接(每行一个人名,exit退出)";
        string s;
        int i = 1;
        cin >> s;
        while (s != "exit") {
            cin >> s;
            covid_peo[i] = s;
            i++;
        }
        cout << "症状(每行一个症状,exit退出)";
        i = 1;
        cin >> s;
        while (s != "exit") {
            cin >> s;
            covid_hea[i] = s;
            i++;
        }
        cout << "填报人姓名";
        cin >> write_name;
        cout << "填报日期";
        cin >> write_data;
        cout << "填报人电话";
        cin >> write_phone;
        cout << "备注";
        cin >> note;
        cout << "编号:" << number << "||姓名:" << name << "已添加" << endl;
        return;
    }
    bool ti(people peo[], int len) { //传入peo数组(没有把地址传进来)和len 
        cout << "编号";
        cin >> number;
        cout << "姓名";
        cin >> name;
        cout << "身份(教职或学生)";
        cin >> id;
        cout << "性别";
        cin >> gender;
        id_1 = "-1";
        id_2 = "-1";
        if (id == "教职") {
            cout << "工号";
            cin >> id_1;
        }
        else {
            cout << "学号";
            cin >> id_2;
        }
        cout << "民族";
        cin >> group;
        cout << "籍贯";
        cin >> origin;
        cout << "生日";
        cin >> birth;
        cout << "二级单位";
        cin >> unit;
        cout << "电话号码";
        cin >> phone;
        cout << "文化程度";
        cin >> learn;
        cout << "婚姻";
        cin >> marry;
        cout << "城市";
        cin >> city;
        cout << "街道";
        cin >> street;
        cout << "社区";
        cout << neigh;
        cout << "门派号";
        cin >> neigh_number;
        cout << "健康状况";
        cin >> healthy;
        cout << "有无新冠症状";
        cin >> covid;
        cout << "密接(每行一个人名,exit退出)";
        string s;
        int i = 1;
        cin >> s;
        while (s != "exit") {
            cin >> s;
            covid_peo[i] = s;
            i++;
        }
        cout << "症状(每行一个症状,exit退出)";
        i = 1;
        cin >> s;
        while (s != "exit") {
            cin >> s;
            covid_hea[i] = s;
            i++;
        }
        cout << "填报人姓名";
        cin >> write_name;
        cout << "填报日期";
        cin >> write_data;
        cout << "填报人电话";
        cin >> write_phone;
        cout << "备注";
        cin >> note;
        cout << "编号:" << number << "||姓名:" << name << "已替换" << endl;
        return true;
    }
};
class geli {
    public:
        string number; //编号
        string name;//姓名
        string card;//身份证
        string id;//身份 
        string gender;//性别 
        string id_1 = "-1";//工号
        string group;//民族
        string origin;//籍贯 
        string birth;//生日
        string unit;//二级单位
        string phone;//电话号码
        string learn;//文化程度
        string marry;//婚姻 
        string city;//城市
        string street;//街道
        string neigh;//社区
        string neigh_number;//门牌号
        string healthy;//健康
        string body_state; //身体状况
        string kinsfolk_conecte_information; //亲属联系信息
        string quarantine_state; //隔离状态
        string quarantine_name; //隔离点名称
        string start_watch_time; //开始观察日期
        string statr_watch_index; //开始观察指标
        string end_watch_time;  //解除观察日期
        string end_watch_index; //解除观察指标
        string healthy_state; //就医情况
        string check_people_num; //排查人员编号
        string principal; //负责人
        string principal_tel;//负责人电话
        string write_time;//填报日期
        string note;//备注
        string marry_state;//婚姻
        string direct_indirect_people;
        bool add(geli ge[], int len) {
            //疫情隔离师生员工信息管理
            cout << "编号";
            cin >> number;
            cout << "姓名";
            cin >> name;
            cout << "身份(教职或学生)";
            cin >> id;
            cout << "身份证";
            cin >> card;
            for (int x = 1; x <= len; x++) {
                if (ge[x].card == card) {
                    return false;
                }
            }
            cout << "学号/工号";
            cin >> id_1;
            cout << "性别";
            cin >> gender;
            cout << "民族";
            cin >> group;
            cout << "籍贯";
            cin >> origin;
            cout << "生日";
            cin >> birth;
            cout << "二级单位";
            cin >> unit;
            cout << "婚姻状况";
            cin >> marry_state;

            cout << "身体状况";
            cin >> body_state;

            cout << "亲属联系信息";
            cin >> kinsfolk_conecte_information;

            cout << "隔离状态";
            cin >> quarantine_state;

            cout << "隔离点名称";
            cin >> quarantine_name;

            cout << "开始观察日期";
            cin >> start_watch_time;

            cout << "开始观察指标";
            cin >> statr_watch_index;

            cout << "解除观察日期";
            cin >> end_watch_time;

            cout << "解除观察指标";
            cin >> end_watch_index;

            cout << "直间接接触者";
            cin >> direct_indirect_people;

            cout << "就医情况";
            cin >> healthy_state;

            cout << "排查人员编号";
            cin >> check_people_num;

            cout << "负责人";
            cin >> principal;

            cout << "负责人电话";
            cin >> principal_tel;

            cout << "填报日期";
            cin >> write_time;

            cout << "备注2";
            cin >> note;
            return true;
        }
};
geli ge[100];
class hesuan {
    //核算检测管理
    public:
        string teacher_num;//师生员工编号
        string name; //姓名
        string card;//身份证号码
        string gender;//性别 
        string id_11 = "-1";//工号
        string id_22 = "-1";//学号
        string birth;//出生日期
        string group;//民族
        string origin;//籍贯 
        string unit;//所在二级单位
        string hesuan_check_time;//核算检查日期
        string hesuan_check_finaly;//核酸检测结果
        string hesuan_check_institution;//核酸检测机构
        string write_name;//填报人名字
        string write_data;//填报日期
        string write_phone;//联系电话
        string note;//备注3
        string body_state;
        string body_stwrite_phoneate;
        string note2;//备注4
        bool add(hesuan he[], int len) {
            //核酸检测管理
            cout << "师生员工编号";
            cin >> teacher_num;

            cout << "姓名";
            cin >> name;

            cout << "身份证号码";
            cin >> card;
            for (int x = 1; x <= len; x++) {
                if (he[x].card == card) {
                    cout << "身份证重复" << endl;
                    return false;
                }
            }

            cout << "性别";
            cin >> gender;

            cout << "工号";
            cin >> id_11;

            cout << "学号";
            cin >> id_22;

            cout << "身体状况";
            cin >> body_state;

            cout << "出生日期";
            cin >> birth;

            cout << "民族";
            cin >> group;

            cout << "籍贯";
            cin >> origin;

            cout << "所在二级单位";
            cin >> unit;

            cout << "核算检查日期";
            cin >> hesuan_check_time;

            cout << "核酸检测结果";
            cin >> hesuan_check_finaly;

            cout << "核酸检测机构";
            cin >> hesuan_check_institution;

            cout << "填报人名字";
            cin >> write_name;

            cout << "填报日期";
            cin >> write_data;

            cout << "联系电话";
            cin >> body_stwrite_phoneate;

            cout << "备注3";
            cin >> note;
            return true;
        }
};
hesuan he[100];
class yimiao {
    public:
        string vaccine_yes_no;//是否注射过疫苗
        string vaccine_time; //疫苗注射日期
        string vaccine_variety;//疫苗注射种类
        string vaccine_institution; //疫苗注射机构
        string write_name;//填报人名字
        string write_data;//填报日期
        string write_phone;//联系电话
        string note;//备注
        string teacher_num;//师生员工编号
        string name; //姓名
        string card;//身份证号码
        string gender;//性别 
        string body_state;
        string id_11 = "-1";//工号
        string id_22 = "-1";//学号
        string birth;//出生日期
        string group;//民族
        string origin;//籍贯 
        string unit;//所在二级单位
        bool add(yimiao yi[], int len) {
            cout << "师生员工编号";
            cin >> teacher_num;

            cout << "姓名";
            cin >> name;

            cout << "身份证号码";
            cin >> card;
            for (int x = 1; x <= len; x++) {
                if (yi[x].card==card) {
                    return false;
                }
            }

            cout << "性别";
            cin >> gender;

            cout << "工号";
            cin >> id_11;

            cout << "学号";
            cin >> id_22;

            cout << "身体状况";
            cin >> body_state;

            cout << "出生日期";
            cin >> birth;

            cout << "民族";
            cin >> group;

            cout << "籍贯";
            cin >> origin;

            cout << "所在二级单位";
            cin >> unit;
            cout << "是否注射过疫苗";
            cin >> vaccine_yes_no;

            cout << "疫苗注射日期";
            cin >> vaccine_time;

            cout << "疫苗注射种类";
            cin >> vaccine_variety;

            cout << "疫苗注射机构";
            cin >> vaccine_institution;

            cout << "填报人名字";
            cin >> write_name;

            cout << "填报日期";
            cin >> write_data;

            cout << "联系电话";
            cin >> write_phone;

            cout << "备注4";
            cin >> note;
            return true;
        }

};
yimiao yi[10000];
people peo[10000];
void tihuan(people peo[], int len) {
    //通过身份证进行查找(身份证唯一) 
    string card;
    cout << "输入查找的身份证" << endl;
    cin >> card;
    bool find = false;
    for (int x = 1; x <= len; x++) {
        if (card == peo[x].card) {
            find = peo[x].ti(peo, len);
            break;
        }
    }
    if (find) {
        cout << "修改成功" << endl;
    }
    else {
        cout << "失败" << endl;
    }
}
void del(people peo[], int len) { //删除
    //一样采用身份证查找 
    string card;
    cout << "输入查找的身份证" << endl;
    cin >> card;
    bool find = false;
    for (int x = 1; x <= len; x++) {
        if (card == peo[x].card) {
            for (int j = x; j <= len; j++) {
                find = true;
                peo[j] = peo[j + 1];
            }
        }
    }
    if (find) {
        cout << "删除成功" << endl;
    }
    else {
        cout << "失败" << endl;
    }
}
void look(people peo[], int len) {
    for (int x = 1; x <= len; x++) {
        cout << "编号:" << peo[x].number << "    姓名:" << peo[x].name << "   身份证:" << peo[x].card << endl;
    }
}
void save(people peo[], int len) {
    ofstream out;
    out.open("save.txt", ios::out);
    for (int x = 1; x <= len; x++) {
        out << peo[x].number << " " << peo[x].name << " " << peo[x].card << " " << peo[x].id << " " << peo[x].gender << " " << peo[x].id_1 << " " << peo[x].id_2 << " " << peo[x].group << " " << peo[x].origin << " " << peo[x].birth << " " << peo[x].unit << " " << peo[x].phone << " " << peo[x].learn << " " << peo[x].marry << " " << peo[x].city << " " << peo[x].street << " " << peo[x].neigh << " " << peo[x].neigh_number << " " << peo[x].healthy << " " << peo[x].covid << " " << peo[x].write_name << " " << peo[x].write_data << " " << peo[x].write_phone << " " << peo[x].note << endl;
    }
    out.close();
}
int load(people peo[], int len) {
    ifstream in;
    in.open("save1.txt", ios::in);
    int x = 1;
    while (in >> peo[x].number >> peo[x].name >> peo[x].card >> peo[x].id >> peo[x].gender >> peo[x].id_1 >> peo[x].id_2 >> peo[x].group >> peo[x].origin >> peo[x].birth >> peo[x].unit >> peo[x].phone >> peo[x].learn >> peo[x].marry >> peo[x].city >> peo[x].street >> peo[x].neigh >> peo[x].neigh_number >> peo[x].healthy >> peo[x].covid >> peo[x].write_name >> peo[x].write_data >> peo[x].write_phone >> peo[x].note) {
        x++;
    }
    in.close();
    return x;
}
void chazhao(people peo[], int len) {
    //一样采用身份证查找 
    string card;
    cout << "输入查找的身份证" << endl;
    cin >> card;
    bool find = false;
    for (int x = 1; x <= len; x++) {
        if (card == peo[x].card) {
            for (int j = x; j <= len; j++) {
                find = true;
                cout << "姓名:" << peo[x].name<<endl;
            }
        }
    }
    if (find) {
        return;
    }
    else {
        cout << "失败" << endl;
    }
}
void youlan(people peo[], int len) {
    for (int x = 1; x <= len; x++) {
        if (peo[x].gender == "男") {
            cout << "姓名:" << peo[x].name << "       身份证:" << peo[x].card << "          性别" << peo[x].gender << endl;
        }
    }

    for (int x = 1; x <= len; x++) {
        if (peo[x].gender == "女") {
            cout << "姓名:" << peo[x].name << "       身份证:" << peo[x].card << "          性别" << peo[x].gender << endl;
        }
    }
}

void tihuan2(hesuan he[], int len) {
    //通过身份证进行查找(身份证唯一) 
    string card;
    cout << "输入查找的身份证" << endl;
    cin >> card;
    bool find = false;
    for (int x = 1; x <= len; x++) {
        if (card == he[x].card) {
            find = he[x].add(he, len);
            break;
        }
    }
    if (find) {
        cout << "修改成功" << endl;
    }
    else {
        cout << "失败" << endl;
    }
}
void del2(hesuan he[], int len) { //删除
    //一样采用身份证查找 
    string card;
    cout << "输入查找的身份证" << endl;
    cin >> card;
    bool find = false;
    for (int x = 1; x <= len; x++) {
        if (card == he[x].card) {
            for (int j = x; j <= len; j++) {
                find = true;
                he[j] = he[j + 1];
            }
        }
    }
    if (find) {
        cout << "删除成功" << endl;
    }
    else {
        cout << "失败" << endl;
    }
}
void look2(hesuan he[], int len) {
    for (int x = 1; x <= len; x++) {
        cout << "编号:" << he[x].teacher_num << "    姓名:" << he[x].name << "   身份证:" << he[x].card << endl;
    }
}
void save2(hesuan he[], int len) {
    ofstream out;
    out.open("save2.txt", ios::out);
    for (int x = 1; x <= len; x++) {
        out << he[x].teacher_num << " " << he[x].name << " " << he[x].card << endl;
    }
    out.close();
}
int load2(hesuan he[], int len) {
    ifstream in;
    in.open("save2.txt", ios::in);
    int x = 1;
    while (in >> he[x].teacher_num >> he[x].name >> he[x].card ) {
        x++;
    }
    in.close();
    return x;
}
void chazhao2(hesuan he[], int len) {
    //一样采用身份证查找 
    string card;
    cout << "输入查找的身份证" << endl;
    cin >> card;
    bool find = false;
    for (int x = 1; x <= len; x++) {
        if (card == he[x].card) {
            for (int j = x; j <= len; j++) {
                find = true;
                cout << "姓名:" << he[x].name << endl;
            }
        }
    }
    if (find) {
        return;
    }
    else {
        cout << "失败" << endl;
    }
}
void youlan2(hesuan he[], int len) {
    for (int x = 1; x <= len; x++) {
        if (he[x].gender == "男") {
            cout << "姓名:" << he[x].name << "       身份证:" << he[x].card << "          性别" << peo[x].gender << endl;
        }
    }

    for (int x = 1; x <= len; x++) {
        if (he[x].gender == "女") {
            cout << "姓名:" << he[x].name << "       身份证:" << he[x].card << "          性别" << peo[x].gender << endl;
        }
    }
}


void tihuan3(yimiao yi[], int len) {
    //通过身份证进行查找(身份证唯一) 
    string card;
    cout << "输入查找的身份证" << endl;
    cin >> card;
    bool find = false;
    for (int x = 1; x <= len; x++) {
        if (card == yi[x].card) {
            find = yi[x].add(yi, len);
            break;
        }
    }
    if (find) {
        cout << "修改成功" << endl;
    }
    else {
        cout << "失败" << endl;
    }
}
void del3(yimiao yi[], int len) { //删除
    //一样采用身份证查找 
    string card;
    cout << "输入查找的身份证" << endl;
    cin >> card;
    bool find = false;
    for (int x = 1; x <= len; x++) {
        if (card == yi[x].card) {
            for (int j = x; j <= len; j++) {
                find = true;
                yi[j] = yi[j + 1];
            }
        }
    }
    if (find) {
        cout << "删除成功" << endl;
    }
    else {
        cout << "失败" << endl;
    }
}
void look3(yimiao yi[], int len) {
    for (int x = 1; x <= len; x++) {
        cout << "编号:" << yi[x].teacher_num << "    姓名:" << yi[x].name << "   身份证:" << yi[x].card << endl;
    }
}
void save3(yimiao yi[], int len) {
    ofstream out;
    out.open("save3.txt", ios::out);
    for (int x = 1; x <= len; x++) {
        out << yi[x].teacher_num << " " << yi[x].name << " " << yi[x].card << endl;
    }
    out.close();
}
int load3(yimiao yi[], int len) {
    ifstream in;
    in.open("save3.txt", ios::in);
    int x = 1;
    while (in >> yi[x].teacher_num >> yi[x].name >> yi[x].card) {
        x++;
    }
    in.close();
    return x;
}
void chazhao3(yimiao yi[], int len) {
    //一样采用身份证查找 
    string card;
    cout << "输入查找的身份证" << endl;
    cin >> card;
    bool find = false;
    for (int x = 1; x <= len; x++) {
        if (card == yi[x].card) {
            for (int j = x; j <= len; j++) {
                find = true;
                cout << "姓名:" << yi[x].name << endl;
            }
        }
    }
    if (find) {
        return;
    }
    else {
        cout << "失败" << endl;
    }
}
void youlan3(yimiao yi[], int len) {
    for (int x = 1; x <= len; x++) {
        if (yi[x].gender == "男") {
            cout << "姓名:" << yi[x].name << "       身份证:" << yi[x].card << "          性别" << peo[x].gender << endl;
        }
    }

    for (int x = 1; x <= len; x++) {
        if (yi[x].gender == "女") {
            cout << "姓名:" << yi[x].name << "       身份证:" << yi[x].card << "          性别" << peo[x].gender << endl;
        }
    }
}


void tihuan4(geli ge[], int len) {
    //通过身份证进行查找(身份证唯一) 
    string card;
    cout << "输入查找的身份证" << endl;
    cin >> card;
    bool find = false;
    for (int x = 1; x <= len; x++) {
        if (card == ge[x].card) {
            find = ge[x].add(ge, len);
            break;
        }
    }
    if (find) {
        cout << "修改成功" << endl;
    }
    else {
        cout << "失败" << endl;
    }
}
void del4(geli ge[], int len) { //删除
    //一样采用身份证查找 
    string card;
    cout << "输入查找的身份证" << endl;
    cin >> card;
    bool find = false;
    for (int x = 1; x <= len; x++) {
        if (card == ge[x].card) {
            for (int j = x; j <= len; j++) {
                find = true;
                ge[j] = ge[j + 1];
            }
        }
    }
    if (find) {
        cout << "删除成功" << endl;
    }
    else {
        cout << "失败" << endl;
    }
}
void look4(geli ge[], int len) {
    for (int x = 1; x <= len; x++) {
        cout << "编号:" << ge[x].id_1 << "    姓名:" << ge[x].name << "   身份证:" << ge[x].card << endl;
    }
}
void save4(geli ge[], int len) {
    ofstream out;
    out.open("save4.txt", ios::out);
    for (int x = 1; x <= len; x++) {
        out << ge[x].id_1 << " " << ge[x].name << " " << ge[x].card << endl;
    }
    out.close();
}
int load4(geli ge[], int len) {
    ifstream in;
    in.open("save4.txt", ios::in);
    int x = 1;
    while (in >> ge[x].id_1 >> ge[x].name >> ge[x].card) {
        x++;
    }
    in.close();
    return x;
}
void chazhao4(geli ge[], int len) {
    //一样采用身份证查找 
    string card;
    cout << "输入查找的身份证" << endl;
    cin >> card;
    bool find = false;
    for (int x = 1; x <= len; x++) {
        if (card == ge[x].card) {
            for (int j = x; j <= len; j++) {
                find = true;
                cout << "姓名:" << ge[x].name << endl;
            }
        }
    }
    if (find) {
        return;
    }
    else {
        cout << "失败" << endl;
    }
}
void youlan4(geli ge[], int len) {
    for (int x = 1; x <= len; x++) {
        if (ge[x].gender == "男") {
            cout << "姓名:" << ge[x].name << "       身份证:" << ge[x].card << "          性别" << ge[x].gender << endl;
        }
    }

    for (int x = 1; x <= len; x++) {
        if (ge[x].gender == "女") {
            cout << "姓名:" << ge[x].name << "       身份证:" << ge[x].card << "          性别" << ge[x].gender << endl;
        }
    }
}


int main() {
    int len = 0;
    int lenh = 0;
    int leny = 0;
    int leng = 0;
    len = load(peo, len);
    lenh = load2(he, lenh);
    leny = load3(yi, leny);
    
    while (true) {
        cout << "------学校疫情管理系统------" << endl;
        cout << " 1.疫情排查师生员工信息管理" << endl;
        cout << "   2.师生员工核酸检测管理" << endl;
        cout << "      3.接种疫苗统计" << endl;
        cout << "    4.学校疫情防控管理" << endl;
        cout << "          5.退出" << endl;
        cout << "         输入操作" << endl;
        char c1;
        cin >> c1;
        if (c1 == '1') {
            while (true) {
                cout << "------师生管理系统------" << endl;
                cout << "     1.添加师生信息" << endl;
                cout << "   2.插入修改师生信息" << endl;
                cout << "     3.删除师生信息" << endl;
                cout << "     4.游览师生信息" << endl;
                cout << "     5.保存师生信息" << endl;
                cout << "     6.读取师生信息" << endl;
                cout << "     7.查找师生信息" << endl;
                cout << "     8.游览师生信息" << endl;
                cout << "         9.退出" << endl;
                cout << "        输入操作" << endl;
                char c;
                cin >> c;
                if (c == '1') {
                    people p;
                    p.in(peo, len);
                    peo[len + 1] = p;
                    len += 1;
                }
                else if (c == '2') {
                    tihuan(peo, len);
                }
                else if (c == '3') {
                    del(peo, len);
                }
                else if (c == '4') {
                    look(peo, len);
                }
                else if (c == '5') {
                    save(peo, len);
                }
                else if (c == '6') {
                    load(peo, len);
                }
                else if (c == '7') {
                    chazhao(peo, len);
                }
                else if (c == '8') {
                    youlan(peo, len);
                }
                else if (c == '9') {
                    cout << "退出";
                    break;
                }
                else {
                    cout << "输入不正确" << endl;
                }
            }
            
        }
        else if (c1 == '2') {
            while (true) {
                cout << "------核酸管理系统------" << endl;
                cout << "     1.添加核酸信息" << endl;
                cout << "   2.插入修改核酸信息" << endl;
                cout << "     3.删除核酸信息" << endl;
                cout << "     4.游览核酸信息" << endl;
                cout << "     5.保存核酸信息" << endl;
                cout << "     6.读取核酸信息" << endl;
                cout << "     7.查找核酸信息" << endl;
                cout << "         8.退出" << endl;
                cout << "        输入操作" << endl;
                char c;
                cin >> c;
                if (c == '1') {
                    hesuan h;
                    h.add(he, lenh);
                    he[lenh + 1] = h;
                    lenh += 1;
                }
                else if (c == '2') {
                    tihuan2(he, lenh);
                }
                else if (c == '3') {
                    del2(he, lenh);
                }
                else if (c == '4') {
                    look2(he, lenh);
                }
                else if (c == '5') {
                    save2(he, lenh);
                }
                else if (c == '6') {
                    load2(he, lenh);
                }
                else if (c == '7') {
                    chazhao2(he, lenh);
                }
                else if (c == '8') {
                    cout << "退出";
                    break;
                }
                else {
                    cout << "输入不正确" << endl;
                }
            }
            
        }
        else if (c1 == '3') {
            while (true) {
                cout << "------疫苗管理系统------" << endl;
                cout << "     1.添加疫苗信息" << endl;
                cout << "   2.插入修改疫苗信息" << endl;
                cout << "     3.删除疫苗信息" << endl;
                cout << "     4.游览疫苗信息" << endl;
                cout << "     5.保存疫苗信息" << endl;
                cout << "     6.读取疫苗信息" << endl;
                cout << "     7.查找疫苗信息" << endl;
                cout << "         8.退出" << endl;
                cout << "        输入操作" << endl;
                char c;
                cin >> c;
                if (c == '1') {
                    yimiao y;
                    y.add(yi, leny);
                    yi[leny + 1] = y;
                    leny += 1;
                }
                else if (c == '2') {
                    tihuan3(yi, leny);
                }
                else if (c == '3') {
                    del3(yi, leny);
                }
                else if (c == '4') {
                    look3(yi, leny);
                }
                else if (c == '5') {
                    save3(yi, leny);
                }
                else if (c == '6') {
                    load3(yi, leny);
                }
                else if (c == '7') {
                    chazhao3(yi, leny);
                }
                else if (c == '8') {
                    cout << "退出"<<endl;
                    break;
                }
                else {
                    cout << "输入不正确" << endl;
                }
            }
        }
        else if (c1 == '4') {
            while (true) {
                cout << "------疫情管理系统------" << endl;
                cout << "     1.添加隔离信息" << endl;
                cout << "   2.插入修改隔离信息" << endl;
                cout << "     3.删除隔离信息" << endl;
                cout << "     4.游览隔离信息" << endl;
                cout << "     5.保存隔离信息" << endl;
                cout << "     6.读取隔离信息" << endl;
                cout << "     7.查找隔离信息" << endl;
                cout << "         8.退出" << endl;
                cout << "        输入操作" << endl;
                char c;
                cin >> c;
                if (c == '1') {
                    geli g;
                    g.add(ge, leng);
                    ge[leng + 1] = g;
                    leng += 1;
                }
                else if (c == '2') {
                    tihuan4(ge, leng);
                }
                else if (c == '3') {
                    del4(ge, leng);
                }
                else if (c == '4') {
                    look4(ge, leng);
                }
                else if (c == '5') {
                    save4(ge, leng);
                }
                else if (c == '6') {
                    load4(ge, leng);
                }
                else if (c == '7') {
                    chazhao4(ge, leng);
                }
                else if (c == '8') {
                    cout << "退出"<<endl;
                    break;
                }
                else {
                    cout << "输入不正确" << endl;
                }
            }
        }
        else if (c1 == '5') {
            return 0;
        }
        else {
            cout << "输入不正确" << endl;
        }
        
    }
    return 0;
}

免费评分

参与人数 6吾爱币 +12 热心值 +6 收起 理由
李俞69 + 1 + 1 命运的齿轮开始转动!真的感想呜呜┭┮﹏┭┮
wangxb2555 + 1 鼓励转贴优秀软件安全工具和文档!
yygfml + 1 + 1 我很赞同!
苏紫方璇 + 7 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!
hxg1189 + 1 + 1 我很赞同!
RainPPR + 2 + 1 热心回复!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

SGC沉默 发表于 2023-8-12 14:37
今夕是何年
回专忆用小甲马 发表于 2023-8-12 13:51
疫情管理?现在还用呢吗?不过疫情确实没有消失
ww7996 发表于 2023-8-12 13:53
eedream 发表于 2023-8-12 14:00
可以留着纪念!
yaojie123456 发表于 2023-8-12 14:01
感谢分享
若梦成空 发表于 2023-8-12 14:07
下意识看了眼时间
兔子哥哥 发表于 2023-8-12 14:14
真强啊,可惜疫情过去啦
Kls673M 发表于 2023-8-12 14:32
有效果图吗,看看大佬的杰作如何的!
zhang7069 发表于 2023-8-12 14:47
软件虽好,可惜疫情已成为过去
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-24 17:41

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表