当前位置:网站首页>基于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
边栏推荐
- Unity 制作旋转门 推拉门 柜门 抽屉 点击自动开门效果 开关门自动播放音效 (附带编辑器扩展代码)
- What if the self incrementing ID of online MySQL is exhausted?
- 力扣刷题日记/day7/6.30
- Li Kou brush question diary /day8/7.1
- Microservice architecture debate between radical technologists vs Project conservatives
- Li Kou brush question diary /day6/6.28
- 一种将Tree-LSTM的强化学习用于连接顺序选择的方法
- With the stock price plummeting and the market value shrinking, Naixue launched a virtual stock, which was deeply in dispute
- 输入的查询SQL语句,是如何执行的?
- 同事悄悄告诉我,飞书通知还能这样玩
猜你喜欢

Five thousand words to clarify team self-organization construction | Liga wonderful talk

TCP两次挥手,你见过吗?那四次握手呢?

Open source PostgreSQL extension age for graph database was announced as the top-level project of Apache Software Foundation

Thawte通配符SSL证书提供的类型有哪些

字节跳动Dev Better技术沙龙成功举办,携手华泰分享Web研发效能提升经验

用于图数据库的开源 PostgreSQL 扩展 AGE被宣布为 Apache 软件基金会顶级项目

一直以为做报表只能用EXCEL和PPT,直到我看到了这套模板(附模板)

2022 national CMMI certification subsidy policy | Changxu consulting

Mysql5.7 installation tutorial graphic explanation

I wrote a learning and practice tutorial for beginners!
随机推荐
Behind the ultra clear image quality of NBA Live Broadcast: an in-depth interpretation of Alibaba cloud video cloud "narrowband HD 2.0" technology
With an estimated value of 90billion, the IPO of super chip is coming
How is the entered query SQL statement executed?
Digital "new" operation and maintenance of energy industry
Interpretation of SIGMOD '22 hiengine paper
[2022 Jiangxi graduate mathematical modeling] curling movement idea analysis and code implementation
How to download files using WGet and curl
Make a grenade with 3DMAX
How to improve development quality
VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
[211] go handles the detailed documents of Excel library
中国农科院基因组所汪鸿儒课题组诚邀加入
华为云ModelArts的使用教程(附详细图解)
表情包坑惨职场人
输入的查询SQL语句,是如何执行的?
线上MySQL的自增id用尽怎么办?
Scala基础教程--12--读写数据
蓝桥:合根植物
How is the entered query SQL statement executed?
提升复杂场景三维重建精度 | 基于PaddleSeg分割无人机遥感影像