当前位置:网站首页>Rookie post station management system based on C language
Rookie post station management system based on C language
2022-07-04 18:58:00 【biyezuopinvip】
Resource download address :https://download.csdn.net/download/sheziqiong/85892789
Resource download address :https://download.csdn.net/download/sheziqiong/85892789
1 The introduction
1.1 Design background
With the development of society , The rise of the Internet , Online shopping has gradually become a new fashion for people to shop . The express industry is also booming driven by online shopping , Become an indispensable part of people's life . So an intelligent express management system , It will greatly facilitate people's life , Improve the efficiency of express delivery .
With the increasing number of express delivery , How to secure express delivery 、 Accurate delivery to every consumer has become a problem . And an intelligent express management system can improve the efficiency of staff , Help the staff count the cargo information quickly . Because express will set up stations in every region , So we designed an express delivery management system called Cainiao post station management system , It is used to help staff finish their work efficiently .
1.2 Design objectives
For the actual needs of Express Management , use C Language as a development language , Working with files .txt As a database , Design and develop a rookie post station management system . The system mainly includes user function module and administrator function module . The user function module includes user registration 、 User Express query 、 Users receive by express 、 User information modification and other functions . The administrator function module includes entering user information 、 Delete user information 、 Query user information 、 Modify user information 、 Enter express information 、 Delete express information 、 Modify the courier information 、 Query express information 、 Statistics of express delivery collection and other functions , Realize the informatization of express delivery management , Improve work efficiency .
1.3 Related technology introduction
The system adopts C Language writing , Use VS2015 Write system program code as a compiler , The whole system uses .txt Files stored as data .
1.3.1 C Introduction to language
C Language is a general computer programming language , Widely used in the underlying development .C The design goal of the language is to provide a way to compile 、 Processing low-level memory 、 Generate a small amount of machine code and a programming language that can run without any support of the running environment . Even though C Language provides many low-level processing functions , But it still has good cross platform characteristics , Written in a standard specification C Language programs can be compiled on many computer platforms , It even includes some embedded processors ( Single chip computer MCU) And supercomputers . The 1980s , In order to avoid the use of C There are differences in language grammar , By the National Bureau of standards C Language has developed a complete set of American national standard grammar , be called ANSI C, As C The original standard of language . at present 2011 year 12 month 8 Japan , International Organization for Standardization (ISO) And the International Electrotechnical Commission (IEC) released C11 The standard is C The third official standard of language , It's also C The latest standard of language , The standard better supports Chinese character function name and Chinese character identifier , To a certain extent, Chinese character programming is realized .
1.4 Document organization
The first part of the introduction mainly explains the design background of the system , Design objectives and C And other related technologies ; The second part of the demand analysis describes the system function and feasibility analysis , Introduced the various functional modules of the system , It also describes the use case diagram and activity diagram of the system , Feasibility analysis introduces the necessity and possibility of system development ; The third part of the system design introduces the system structure design ; The fourth part of the system implementation mainly talks about the login module 、 Functions realized by administrator module and user module ; The fifth part of the system test mainly introduces the test method and detailed process of the system .
Catalog
1 The introduction
1.1 Design background
1.2 Design objectives
1.3 Related technology introduction
1.3.1 C Introduction to language
1.4 Document organization
2 Demand analysis
2.1 System function Overview
2.2 System execution process description
3 The system design
3.1 System structure design
4 system implementation
4.1 Login module implementation
4.2 Administrator module implementation
4.3 User module implementation
5 The system test
5.1 System test overview
5.2 System test method
5.3 System testing
Conclusion
reference
Instructor comments
Grade evaluation
The main interface code is as follows :
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "macro_file.h" // Macro definition file
#include "struct_file.h" // Structure file
#include "function_declare_file.h" // Function declaration file
#include "student_file.c" // Student code file
#include "administrator_file.c" // Administrator code file
// Global variables
int stu_Count;
int package_Count;
int teach_Count;
int select_Count;
long user_num;
//main function
void main()
{
int temp,choice,t=-1;
welcome(); // The welcome screen
choice=user_type(); // User selects identity interface
if(choice!=0){
// Load the student information file
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");
// Clear the screen
if(choice==1){
t=regs();// The registration screen
}
if(t==1){
regs_student();
}
if(t==0){
exit_system();
}
temp=land(choice); // Login password verification
if(temp==YES) // Login successful
{
system("cls");
switch(choice){
case 1:
student();
break;
case 2:
administrator();
break;
}
}
else
printf("\n I'm sorry , Your login opportunities have been exhausted !\n Welcome to log in next time !\n"); // Login failed
}
else
printf("\n The system has exited , Welcome to log in next time !\n");
}
// The welcome screen
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&&| * Welcome to the rookie post station management system * |&&\n");
printf("\t\t&&| . . |&&\n");
printf("\t\t&&| @ *·*·*·*·*·*·*·* @ |&&\n");
printf("\t\t+============================================+\n");
printf("\t\t*-^@^-----^@^-----^@^----^@^-----^@^-----^@^-*\n");
printf("\n\n\n\n Press Enter Key return ……");
if(getchar())
system("cls");
}
// The registration screen
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]---------- new user | @\n");
printf("\t\t\[email protected] [2]---------- Old users | @\n");
printf("\t\t\[email protected] [0]-------- Exit the system | @\n");
printf("\t\t+============================================+\n");
printf("\t\t*-^@^-----^@^-----^@^----^@^-----^@^-----^@^-*\n");
printf("\n\n\n Please enter your choice :");
scanf("%d", &ch);
if(getchar())
system("cls");
return ch;
}
// Functions that control login
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 I'm sorry , Your selection is wrong !\n");
break;
}
return temp;
}
// Select the user type interface
int user_type()
{
int choice;
choice = -1;
system("cls");
printf("\n\n\n\n reminder : Please exit the system in the normal order ^_^\n");
printf("-------------------------------------------------------\n");
printf("\n");
printf("\t\t\[email protected]·@·@·@·@·@·@·@·@·@·@·@\n");
printf("\t\t\[email protected] The user types @\n");
printf("\t\t\[email protected]·@·@·@·@·@·@·@·@·@·@·@\n");
printf("\t\t\[email protected] [1]---------- Student @\n");
printf("\t\t\[email protected] [2]---------- Administrators @\n");
printf("\t\t\[email protected] [0]-------- Exit the system @\n");
printf("\t\t\[email protected]·@·@·@·@·@·@·@·@·@·@·@\n");
printf("\t\t-----------------------------------------\n");
printf("\n\n\n Please enter your choice :");
scanf("%d", &choice);
return choice;
}
// System exit function
void exit_system()
{
// Save student information
save_student_information("student_information_file.txt");
save_package_information("package_information_file.txt");
// Exit the screen
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^) Thank you for using , Welcome to log in next time !+|\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);
}
Resource download address :https://download.csdn.net/download/sheziqiong/85892789
Resource download address :https://download.csdn.net/download/sheziqiong/85892789
边栏推荐
猜你喜欢
Li Kou brush question diary /day3/2022.6.25
删除二叉搜索树中的节点附图详解
力扣刷题日记/day1/2022.6.23
Machine learning concept drift detection method (Apria)
力扣刷题日记/day5/2022.6.27
Unity makes revolving door, sliding door, cabinet door drawer, click the effect of automatic door opening and closing, and automatically play the sound effect (with editor extension code)
Load test practice of pingcode performance test
爬虫(6) - 网页数据解析(2) | BeautifulSoup4在爬虫中的使用
MySQL常用增删改查操作(CRUD)
Scala基础教程--15--递归
随机推荐
1、 Introduction to C language
TCP waves twice, have you seen it? What about four handshakes?
Scala基础教程--20--Akka
Reptile elementary learning
基于C语言的菜鸟驿站管理系统
Scala basic tutorial -- 17 -- Collection
I wrote a learning and practice tutorial for beginners!
【2022年江西省研究生数学建模】水汽过饱和的核化除霾 思路分析及代码实现
力扣刷题日记/day6/6.28
Scala basic tutorial -- 20 -- akka
线上MySQL的自增id用尽怎么办?
一、C语言入门基础
Li Kou brush question diary /day5/2022.6.27
NBA赛事直播超清画质背后:阿里云视频云「窄带高清2.0」技术深度解读
C language printing exercise
Scala基础教程--16--泛型
[go ~ 0 to 1] read, write and create files on the sixth day
激进技术派 vs 项目保守派的微服务架构之争
Scala基础教程--17--集合
Wanghongru research group of Institute of genomics, Chinese Academy of Agricultural Sciences is cordially invited to join