91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

本程序為C語言實現公交信息管理系統,經過測試,已經可以運行,運行之前請查看最前面的注釋!歡迎下載

資源截圖

代碼片段和文件信息

/*本程序為公交信息查詢系統
版權說明、版本號、生成日期、作者、模塊目的/功能、主要函數及其功能、修改日志等。
版權說明:本程序為公交信息管理系統。
生成日期:2019年1月1月,大二上學期課程設計
作者:
模塊:
一. 本程序分為管理員界面和普通用戶界面
二. 本程序包括添加,修改,刪除,查看公交信息,添加用戶功能
三. 管理員可以添加,修改,刪除,查看公交信息,
四. 查看公交信息分為兩種:按公交號碼查看,按起終點查看
五.已經登錄的用戶可以按照公交號碼查找公交信息,也可以按照起終點進行查看公交信息。
限制條件:運用所學的數據結構
主要函數及其功能:
????????一:公交信息添加函數:添加公交信息
二:公交修改添加函數:修改公交信息
三:公交刪除添加函數:刪除公交信息
四:公交查看添加函數:查看公交信息(按公交號查看,按起終點查看)
修改日志:
?????2018年12月24日到2019年1月1日
目前的一個Bug??:顯示公交信息時會反復的查詢;
????????????????需要在使用之前創建4個文件分別為:account.txt、busInfo.txt、place.txt、total_num.txt。并且需要提前將total_num.txt中寫入0

*/
#include
#include
#include?
#include?
#include?
#include?se.h>
#include//isdigit函數的頭文件

#define?NumMax?1000//公交用戶的最大數目
#define?PLACE_SIZE?20
#define?MAX_NUM?50?//可添加的最大公交數量
#define?DEFAULT_NUM?30


int?N;//公交用戶的數目
void?OpenAccount();//創建新的公交用戶
void?ChangeThePassword();//用戶修改密碼函數
int?search();//判斷賬號的位置
int?InputPassword();//輸入密碼
void?input_placeInfo(int?num);
void?init();//初始化程序,導入公交信息
void?exits();//保存并退出整個函數
struct?busInfo*?input_busInfo();//公交信息寫入函數
void?print_all_bus();//輸出公交信息函數
void?busInfo_inFile();//公交信息寫入文件函數
void?print_bus(int?order);//打印指定車輛完整信息
void?search_place();//按公交起終點查詢
void?search_num();//按照公交號碼查找
void?delete_bus();//刪除公交信息函數


void??PtyhMenu();
void?GlyMenu();
void?ZjmMenu();
void?PtyhMenu();
void?CzMenu();
void?mm();
void?CzMenu1();
int?putongyonghu();
int?login();
FILE?*fp*f;?//全局指針
int?total_num=1;


struct?placeInfo{
char?placeN[DEFAULT_NUM][PLACE_SIZE];
};


typedef?struct
{
????int?num;//賬號
????char?name[20];//用戶名
????int?password;//密碼
int?status;//狀態:0正常?1掛失?2銷戶
}?Account;
Account?user[NumMax];

struct?busInfo{
int?num;//公交號
int?price;//價格
char?firsttime_winter[8];//首班時間
char?lasttime_winter[8];//首班時間
char?firsttime_summer[8];//首班時間
char?lasttime_summer[8];//末班時間
int?intervaltime;//間隔時間
int?place_nums;//站點總數
};
int?main()
{
init();
ZjmMenu();
exits();
return?0;
}
//管理員1菜單
void?GlyMenu()
{
???//int?m;
system(“cls“);
???printf(“??????????????????????????-----------歡迎使用管理員菜單------------\n“);
???mm();
}
//主界面菜單
void?ZjmMenu()
{
??? ???int?aa;
???system(“cls“);
???printf(“??????????????????????????歡迎進入公交信息系統\n“);
???printf(“??????????????????????????1.以管理員身份進入\n“);
???printf(“??????????????????????????2.以普通用戶身份進入\n“);
???????printf(“??????????????????????????3.退出程序\n“);
???printf(“??????????????????????????請輸入您的選項:“);
???scanf(“%d“&aa);
???switch?(aa)
???{
?case?1:GlyMenu();break;
?case?2:putongyonghu();break;
?case?3:printf(“??????????????????????????感謝您使用公交信息查詢系統\n“);exit?(0);
???} ???
}
//管理員菜單
void?Menu()
{
????int?bb;
system(“cls“);
printf(“??????????????????????????歡迎進入管理員菜單\n“);
printf(“??????????????????????????1.????添加公交信息\n“);
printf(“??????????????????????????2. 顯示公交信息\n“);
printf(“??????????????????????????3. 查詢公交信息\n“);
printf(“?

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????????2??2019-01-03?09:34??公交信息查詢系統\account.txt

?????文件????????118??2019-01-03?09:24??公交信息查詢系統\busInfo.txt

?????文件?????????79??2019-01-03?09:23??公交信息查詢系統\place.txt

?????文件??????????1??2019-01-03?09:16??公交信息查詢系統\total_num.txt

?????文件??????24964??2019-01-03?09:34??公交信息查詢系統\公交信息查詢系統.c

?????目錄??????????0??2019-01-03?09:34??公交信息查詢系統

-----------?---------??----------?-----??----

????????????????25164????????????????????6


評論

共有 條評論