• 大小: 686KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-02
  • 语言: C/C++
  • 标签: 课设  

资源简介

c++课设,实现快递的查找,录入,删除等操作

资源截图

代码片段和文件信息

#include 
#include “CPersonManage.h“
#include “CExpressManage.h“
#include “CDate.h“
using namespace std;

void Display();
int main()
{

    cout << “      快件管理系统“ << endl;
    cout << “------------------------“ << endl;
    CDate sj;
    sj.format(“ddd“);
    cout << “  当前日期:  “ << sj.format(“ddd“) << endl;
    CPersonManage obj1;
    CExpressManage obj2;
    int choice;
    Display();
    while(cin >> choice && choice!=0)
    {
        if(choice==1)
        {
            int ab=0;
            cout << “  1) 登陆    2) 注册“ << endl;
            cin >> a;
            if(a==1)
                b=obj1.Enter();
            else if(a==2)
                b=obj1.Register();
            if(b==1)
            {
                cout << “  1) 录入快件信息“ << endl;
                cout << “  2) 取出快件“ << endl;
                cout << “  3) 快件操作“ << endl;
                cout << “  4) 统计收取件情况“ << endl;
                int c;
                cin >> c;
                if(c==1)
                {
                    obj2.EnterExpress();
                }
                else if(c==2)
                {
                    cout << “  通过 1) 手机号  2) 取件号 取件“ << endl;
                    int d;
                    cin >> d;
                    if(d==1)
                    {
                        obj2.PickupExpressWithTel();
                    }
                    else if(d==2)
                    {
                        obj2.PickupExpressWithNum();
                    }
                }
                else if(c==3)
                {
                    cout << “  1) 查找  2) 删除  3) 修改\n  4) 查询所有未取快件“ << endl;
                    int d;
                    cin >> d;
                    if(d==1)
                    {
                        obj2.OperateExpress_find();
                    }
                    else if(d==2)
                    {
                        obj2.OperateExpress_delete();
                    }
                    else if(d==3)
                    {
                        obj2.OperateExpress_modify();
                    }
                    else if(d==4)
                    {
                        obj2.OperateExpress_countunpickup();
                    }
                }
                else if(c==4)
                {
                    obj2.CountExpress();
                }
            }

        }
        else if(choice==2)
        {
            obj2.SearchExpressWithTel();
        }
        Display();
    }
    return 0;
}

void Display()
{
    cout << “------------------------“ << endl;
    cout << “  请选择操作人员“ << endl;
    cout << “  1) 代收点服务人员“ << endl;
    cout << “  2) 收件人“ << endl;
    cout << “  0) 退出程序“ << endl;
    cout << “------------------------“ << endl;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-05-07 23:48  ExpressManage\bin\
     目录           0  2019-05-23 11:11  ExpressManage\bin\Debug\
     文件     2011225  2019-05-23 11:11  ExpressManage\bin\Debug\ExpressManage.exe
     文件        1604  2019-05-22 23:07  ExpressManage\ExpressManage.cbp
     文件        2304  2019-05-23 11:11  ExpressManage\ExpressManage.depend
     文件        2289  2019-05-23 11:17  ExpressManage\ExpressManage.layout
     目录           0  2019-05-23 11:10  ExpressManage\include\
     文件         594  2019-05-22 20:24  ExpressManage\include\CDate.h
     文件        3080  2019-05-23 11:10  ExpressManage\include\CExpress.h
     文件         894  2019-05-22 23:58  ExpressManage\include\CExpressManage.h
     文件         475  2019-05-14 23:41  ExpressManage\include\CPerson.h
     文件         386  2019-05-19 23:25  ExpressManage\include\CPersonManage.h
     文件        2921  2019-05-23 00:37  ExpressManage\main.cpp
     目录           0  2019-05-07 23:48  ExpressManage\obj\
     目录           0  2019-05-23 11:10  ExpressManage\obj\Debug\
     文件       22050  2019-05-23 11:10  ExpressManage\obj\Debug\main.o
     目录           0  2019-05-23 11:11  ExpressManage\obj\Debug\src\
     文件       50064  2019-05-22 22:59  ExpressManage\obj\Debug\src\CDate.o
     文件       55599  2019-05-23 11:10  ExpressManage\obj\Debug\src\CExpress.o
     文件      275900  2019-05-23 11:11  ExpressManage\obj\Debug\src\CExpressManage.o
     文件       44511  2019-05-22 22:59  ExpressManage\obj\Debug\src\CPerson.o
     文件      137563  2019-05-22 22:59  ExpressManage\obj\Debug\src\CPersonManage.o
     目录           0  2019-05-23 11:11  ExpressManage\src\
     文件        1007  2019-05-22 20:24  ExpressManage\src\CDate.cpp
     文件        2676  2019-05-23 10:46  ExpressManage\src\CExpress.cpp
     文件       32114  2019-05-23 11:11  ExpressManage\src\CExpressManage.cpp
     文件         314  2019-05-14 23:28  ExpressManage\src\CPerson.cpp
     文件        2222  2019-05-21 23:30  ExpressManage\src\CPersonManage.cpp
     目录           0  2019-05-20 19:49  ExpressManage\文本\
     目录           0  2019-05-23 10:10  ExpressManage\文本\快件\
     文件         182  2019-05-23 11:11  ExpressManage\文本\快件\2019-5-23.txt
............此处省略3个文件信息

评论

共有 条评论