当前位置:网站首页>基于C语言的菜鸟驿站管理系统
基于C语言的菜鸟驿站管理系统
2022-07-04 17:05:00 【biyezuopinvip】
资源下载地址:https://download.csdn.net/download/sheziqiong/85892789
资源下载地址:https://download.csdn.net/download/sheziqiong/85892789
1 绪论
1.1设计背景
随着社会的发展,互联网的兴起,网络购物渐成为人们购物的新时尚。快递行业也在网络购物的带动下蓬勃发展,成为人们生活中必不可少的一部分。所以一个智能的快递管理系统,会大大的方便人们的生活,提高快递运送的效率。
随着快递数量的不断增多,如何将快递安全、准确的送到每一位消费者手上成为了一个问题。而一个智能的快递管理系统可以提高工作人员的效率,帮助工作人员快速清点货物信息。由于快递会在每个地区都设立站点,所以我们设计了一款名为菜鸟驿站管理系统的快递管理系统,用来帮助工作人员高效的完成工作。
1.2 设计目标
针对快递管理的实际需求,采用C语言作为开发语言,使用文件.txt作为数据库,设计并且开发了一个菜鸟驿站管理系统。系统主要包括用户功能模块和管理员功能模块。用户功能模块包括用户注册、用户快递查询、用户快递领取、用户信息修改等功能。管理员功能模块包括录入用户信息、删除用户信息、查询用户信息、修改用户信息、录入快递信息、删除快递信息、修改快递信息、查询快递信息、统计快递领取情况等功能,实现快递管理的信息化,提高工作效率。
1.3相关技术介绍
本系统采用C语言编写,使用VS2015作为编译器编写系统程序代码,整个系统以.txt作为数据存储的文件。
1.3.1 C语言简介
C语言是一门通用计算机编程语言,广泛应用于底层开发。C语言的设计目标是提供一种能以简易的方式编译、处理低级存储器、产生少量的机器码以及不需要任何运行环境支持便能运行的编程语言。尽管C语言提供了许多低级处理的功能,但仍然保持着良好跨平台的特性,以一个标准规格写出的C语言程序可在许多电脑平台上进行编译,甚至包含一些嵌入式处理器(单片机或称MCU)以及超级电脑等作业平台。二十世纪八十年代,为了避免各开发厂商用的C语言语法产生差异,由美国国家标准局为C语言制定了一套完整的美国国家标准语法,称为ANSI C,作为C语言最初的标准。目前2011年12月8日,国际标准化组织(ISO)和国际电工委员会(IEC)发布的C11标准是C语言的第三个官方标准,也是C语言的最新标准,该标准更好的支持了汉字函数名和汉字标识符,一定程度上实现了汉字编程。
1.4 文档组织结构
本文第一部分绪论主要说明了系统的设计背景,设计目标以及C等相关技术;第二部需求分析阐述了系统功能和可行性分析,介绍了系统各个功能模块,并描述了系统的用例图和活动图,可行性分析介绍了系统开发的必要性和可能性;第三部分系统设计则介绍了系统结构设计;第四部分系统实现主要讲了登录模块、管理员模块和用户模块实现的功能;第五部分系统的测试主要介绍了对该系统的测试方法和详细过程。
目录
1 绪论
1.1设计背景
1.2 设计目标
1.3相关技术介绍
1.3.1 C语言简介
1.4 文档组织结构
2 需求分析
2.1系统功能概述
2.2 系统执行流程描述
3 系统设计
3.1 系统结构设计
4 系统实现
4.1 登陆模块实现
4.2 管理员模块实现
4.3 用户模块实现
5 系统测试
5.1 系统测试概述
5.2 系统测试方法
5.3 系统的测试
结束语
参考文献
指导教师评语
成绩评定
主界面代码如下:
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "macro_file.h" //宏定义文件
#include "struct_file.h" //结构体文件
#include "function_declare_file.h" //函数声明文件
#include "student_file.c" //学生代码文件
#include "administrator_file.c" //管理员代码文件
//全局变量
int stu_Count;
int package_Count;
int teach_Count;
int select_Count;
long user_num;
//main函数
void main()
{
int temp,choice,t=-1;
welcome(); //欢迎界面
choice=user_type(); //用户选择身份界面
if(choice!=0){
//载入学生信息文件
Load_student_information("student_information_file.txt");
Load_package_information("package_information_file.txt");
printf("Press any key to continue\n");
getchar();
if(getchar()) system("cls");
//清屏
if(choice==1){
t=regs();//注册界面
}
if(t==1){
regs_student();
}
if(t==0){
exit_system();
}
temp=land(choice); //登录密码验证
if(temp==YES) //登录成功
{
system("cls");
switch(choice){
case 1:
student();
break;
case 2:
administrator();
break;
}
}
else
printf("\n对不起,您的登录机会已用完!\n欢迎下次登录!\n"); //登录失败
}
else
printf("\n系统已退出,欢迎下次登录!\n");
}
//欢迎界面
void welcome()
{
printf("\n\n\n\n\n\n\n\n\n");
printf("\t\t|*^**^**^**^**^**^**^**^**^**^**^**^**^**^**^|\n");
printf("\t\t+============================================+\n");
printf("\t\t&&| @ *·*·*·*·*·*·*·* @ |&&\n");
printf("\t\t&&| . . |&&\n");
printf("\t\t&&| * 欢迎使用菜鸟驿站管理系统 * |&&\n");
printf("\t\t&&| . . |&&\n");
printf("\t\t&&| @ *·*·*·*·*·*·*·* @ |&&\n");
printf("\t\t+============================================+\n");
printf("\t\t*-^@^-----^@^-----^@^----^@^-----^@^-----^@^-*\n");
printf("\n\n\n\n按Enter键返回……");
if(getchar())
system("cls");
}
//注册界面
int regs()
{
int ch;
ch = -1;
system("cls");
printf("\n\n\n\n\n\n\n\n\n");
printf("\t\t|*^**^**^**^**^**^**^**^**^**^**^**^**^**^**^|\n");
printf("\t\t+============================================+\n");
printf("\t\t\[email protected] [1]----------新用户 | @\n");
printf("\t\t\[email protected] [2]----------老用户 | @\n");
printf("\t\t\[email protected] [0]--------退出系统 | @\n");
printf("\t\t+============================================+\n");
printf("\t\t*-^@^-----^@^-----^@^----^@^-----^@^-----^@^-*\n");
printf("\n\n\n请输入您的选择:");
scanf("%d", &ch);
if(getchar())
system("cls");
return ch;
}
//控制登录的函数
int land(int user_type)
{
int temp;
switch(user_type){
case 1:
temp=stu_land();
break;
case 2:
temp=admin_land();
break;
default:
printf("\n对不起,您选择错误!\n");
break;
}
return temp;
}
//选择用户类型界面
int user_type()
{
int choice;
choice = -1;
system("cls");
printf("\n\n\n\n温馨提示:请您按正常顺序退出系统^_^\n");
printf("-------------------------------------------------------\n");
printf("\n");
printf("\t\t\[email protected]·@·@·@·@·@·@·@·@·@·@·@\n");
printf("\t\t\[email protected] 用户类型 @\n");
printf("\t\t\[email protected]·@·@·@·@·@·@·@·@·@·@·@\n");
printf("\t\t\[email protected] [1]----------学生 @\n");
printf("\t\t\[email protected] [2]----------管理员 @\n");
printf("\t\t\[email protected] [0]--------退出系统 @\n");
printf("\t\t\[email protected]·@·@·@·@·@·@·@·@·@·@·@\n");
printf("\t\t-----------------------------------------\n");
printf("\n\n\n请输入您的选择:");
scanf("%d", &choice);
return choice;
}
//系统退出函数
void exit_system()
{
//保存学生信息
save_student_information("student_information_file.txt");
save_package_information("package_information_file.txt");
//退出界面
system("cls");
printf("\n\n\n\n\n");
printf("\t\t\t|^-^**^-^**^-^**^--^**^-^**^-^**^-^|\n");
printf("\t\t\t|+ +|\n");
printf("\t\t\t|+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+|\n");
printf("\t\t\t|+* *+|\n");
printf("\t\t\t|+(^o^)谢谢您的使用,欢迎下次登录!+|\n");
printf("\t\t\t|+* *+|\n");
printf("\t\t\t|+* *+|\n");
printf("\t\t\t|+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+|\n");
printf("\t\t\t|*@ . &. @. &. @. &. @. &. @. &. @*|\n");
printf("\n\n\n\n\n");
exit(0);
}
资源下载地址:https://download.csdn.net/download/sheziqiong/85892789
资源下载地址:https://download.csdn.net/download/sheziqiong/85892789
边栏推荐
- How is the entered query SQL statement executed?
- 谷粒商城(一)
- Li Kou brush question diary /day5/2022.6.27
- 力扣刷题日记/day4/6.26
- How to download files using WGet and curl
- .NET ORM框架HiSql实战-第二章-使用Hisql实现菜单管理(增删改查)
- TCP waves twice, have you seen it? What about four handshakes?
- Scala基础教程--18--集合(二)
- fopen、fread、fwrite、fseek 的文件处理示例
- Li Kou brush question diary /day7/2022.6.29
猜你喜欢
力扣刷题日记/day5/2022.6.27
Improve the accuracy of 3D reconstruction of complex scenes | segmentation of UAV Remote Sensing Images Based on paddleseg
删除二叉搜索树中的节点附图详解
机器学习概念漂移检测方法(Aporia)
Installation and use of VMware Tools and open VM tools: solve the problems of incomplete screen and unable to transfer files of virtual machines
输入的查询SQL语句,是如何执行的?
Make a grenade with 3DMAX
VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
Scala基础教程--20--Akka
如何提高开发质量
随机推荐
[HCIA continuous update] WAN technology
How to download files using WGet and curl
TorchDrug教程
Interpretation of SIGMOD '22 hiengine paper
Is it safe to download the mobile version of Anxin securities and open an account online
力扣刷题日记/day3/2022.6.25
2022年DCMM认证全国各地补贴政策汇总
Unity 制作旋转门 推拉门 柜门 抽屉 点击自动开门效果 开关门自动播放音效 (附带编辑器扩展代码)
被忽视的问题:测试环境配置管理
力扣刷题日记/day5/2022.6.27
Li Kou brush question diary /day2/2022.6.24
celebrate! Kelan sundb and Zhongchuang software complete the compatibility adaptation of seven products
Wireshark抓包TLS协议栏显示版本不一致问题
2022 national CMMI certification subsidy policy | Changxu consulting
俄罗斯 Arenadata 发布基于PostgreSQL的产品
Nature microbiology | viral genomes in six deep-sea sediments that can infect Archaea asgardii
Achieve animation effect through event binding
Nature Microbiology | 可感染阿斯加德古菌的六种深海沉积物中的病毒基因组
Li Kou brush question diary /day7/6.30
I wrote a learning and practice tutorial for beginners!