?? interface.cpp
字號:
//Interface.cpp
//界面設計
#include "StdAfx.h"
#include "typedef.h"
//登陸前標題
void Out_hander_ce()
{
printf(" - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\t\t\t The Park Manages System\n\n\t\t\t 停 車 場 管 理 系 統\n\n\t\t\t\t\t\t\t\tversion 0.0.1\n\n\t\t\t\t\t\t copyrigth &XXX All Reserved\n - - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
}
void Out_hander_ch()
{
printf(" - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\t\t\t 停 車 場 管 理 系 統\n\n\t\t\t\t\t\t\t\tversion 0.0.1\n\n\t\t\t\t\t\t copyrigth &XXX All Reserved\n - - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
printf("\t\t\t\t\t\t您還沒有登陸,請您登陸。\n\n");
}
void Out_hander_en()
{
printf(" - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\t\t\t The Park Manages System\n\n\t\t\t\t\t\t\t\tversion 0.0.1\n\n\t\t\t\t\t\t copyrigth &XXX All Reserved\n - - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
printf("\t\t\t\tYou haven't land and please debarkation.\n\n");
}
//登陸后標題
void In_hander_ch()
{
printf(" - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\t\t\t 停 車 場 管 理 系 統\n\n\t\t\t\t\t\t\t\tversion 0.0.1\n\n\t\t\t\t\t\t copyrigth &XXX All Reserved\n- - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
printf("\n\t\t\t\t\t%s 您好,歡迎您的使用。\n\n",user.username);
}
void In_hander_en()
{
printf(" - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\t\t\t The Park Manages System\n\n\t\t\t\t\t\t\t\tversion 0.0.1\n\n\t\t\t\t\t\t copyrigth &XXX All Reserved\n- - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
printf("\n\t\t\t\t Hello %s,welcome to your usage.\n\n",user.username);
}
//幫助菜單
void In_help_ch()
{
printf("\ndeposit\t 存入車輛\ntakeout\t 取出車輛\nsearch\t 查找車輛\nstate\t 查看停車場狀態\nadvanced 高級管理\nquick\t 注銷并退出系統\nhelp\t 幫助菜單\n");
}
void In_help_en()
{
printf("\ndeposit\t Input the car\ntakeout\t Takeout a car\nsearch\t Search a car\nstate\t Look into a parking lot state\nadvanced The advanced manages\nquick\t Logout and exit\nhelp\t Help menu\n");
}
//高級菜單
void In_admin_ch()
{
printf("\n\nprice\t\t重新設置停車價格\npassword\t修改密碼\nlanguage\t修改語言\nbackdata\t備份,恢復數據文件\nlog\t\t查看日志\nhelp\t\t查看幫助\nback\t\t回到上級菜單\n");
}
void In_admin_en()
{
printf("\n\nprice\t\tModify parking price\npassword\tModify password\nlanguage\tReset the language\nbackdata\tBackup or recovery data file\nlog\t\tLook into the log\nhelp\t\tHelp menu\nback\t\tBack to the next\n");
}
//中文界面
char * Chinese[] =
{
"請輸入用戶名:", //p
"請輸入 密碼:", //p+1
"請重復輸入密碼:", //p+2
"兩次密碼輸入不一致,請重新輸入!", //p+3
"請設置每小時停車價格(格式:元.角分,例如:15.00):", //p+4
"您的用戶名是:", //p+5
"密 碼 是 :", //p+6
"每小時停車價格是:", //p+7
"以上信息正確嗎?(y/n)", //p+8
"程序運行出現意外錯誤,按任意鍵繼續", //p+9
"用戶創建成功,現在將以新用戶身份登錄,按任意鍵繼續。", //p+10
"登陸成功,按任意鍵繼續", //p+11
"用戶名或密碼輸入錯誤,請重新輸入。按任意鍵繼續", //p+12
"請輸入新密碼:", //p+13
"密碼修改成功!按任意鍵返回。", //p+14
"從未備份數據,備份請輸入backup。", //p+15
"備份數據文件成功,按任意鍵返回。", //p+16
"文件未備份,按任意鍵返回。", //p+17
"數據文件已經備份,重新備份請輸入backup,恢復數據文件請輸入recover。", //p+18
"恢復會造成新添加數據丟失,確認操作嗎?(y/n)", //p+19
"恢復數據文件成功,按任意鍵返回。", //p+20
"車位已滿!", //p+21
"存入車輛", //p+22
"請輸入車主姓名:", //p+23
"請輸入車牌號碼:", //p+24
"日志可能沒有被正確記錄。", //p+25
"當前價格為:", //p+26
"請輸入新的價格:", //p+27
"價格設置成功,從現在開始存入的車輛將以新價格計費,之前車輛仍按照以前價格計費。按任意鍵繼續", //p+28
"車輛添加成功,請將車輛放入車位:", //p+29
"按任意鍵繼續", //p+30
"取出車輛", //p+31
"當前沒有車輛在停車場存放。", //p+32
"沒有找到該車輛,請檢查輸入。", //p+33
"記錄已找到:", //p+34
"車牌號碼:", //p+35
"車主姓名:", //p+36
"存放位置:", //p+37
"年", //p+38
"月", //p+39
"日", //p+40
"天", //p+41
"小時", //p+42
"分鐘", //p+43
"存入時間:", //p+44
"當前時間:", //p+45
"停車計時:", //p+46
"停車費用:", //p+47
"元", //p+48
"車輛取出成功,按任意鍵繼續。", //p+50
"搜索車輛", //p+51
"當前沒有車輛在停車場存放。", //p+52
"請輸入要查找的車牌號碼:", //p+53
"沒有找到該車記錄", //p+54
"查看停車場狀態", //p+55
"停車場當前還有", //p+56
"個空余車位。", //p+57
"當前所有存放車輛:", //p+58
"請重新輸入管理員密碼:", //p+59
"密碼輸入錯誤,按任意鍵返回。", //p+60
"密碼驗證成功,即將進入高級管理命令,請謹慎操作。", //p+61
"高級管理命令", //p+62
"請輸入高級管理命令(輸入help獲得幫助):", //p+63
"命令輸入錯誤,請重新輸入.\n", //p+64
"請輸入命令(輸入help獲得幫助):", //p+65
"車牌號碼為", //p+66
"修改停車價格", //p+67
"修改密碼", //p+68
"備份數據文件", //p+69
"恢復數據文件", //p+70
"登陸系統", //p+71
"注銷系統", //p+72
"系統日志", //p+73
"清空日志請輸入clear,回到高級管理界面請輸入back。", //p+74
"清空后將不可恢復,確認要清空嗎?(y/n)", //p+75
"日志清空成功,按任意鍵繼續。", //p+76
"請設置停車場的容量(格式:長.寬,例如:5.4):", //p+77
"停車場的容量是:" //p+78
};
//英文界面
char * English[] =
{
"Please input a username:",
"Please input a password:",
"Please input the password again:",
"The password input anticoincidence, please input afresh!",
"Please establish a per hour parking price(format:Dollar.Corner deci, for example:15.00):",
"Your user's name is:",
"The password is:",
"The per hour parking price is:",
"Above information exactitude?(y/n)", //p+8
"The program run appears an accident error, click arbitrarily the key go on", //p+9
"The user establishes success, will register by new user identity now and click arbitrarily the key go on.", //p+10
"Debarkation success, click arbitrarily the key go on", //p+11
"User's name or password input error please re- input.Click arbitrarily the key go on", //p+12
"Please input a new password:", //p+13
"Password modify success!Click arbitrarily key return.", //p+14
"Never backup data, the backup please input backup.", //p+15
"The file success of the backup data, click arbitrarily key return.", //p+16
"File don't backup, click arbitrarily key return.", //p+17
"Data file already backup, afresh the backup please input backup, the recovery data file please input recover.", //p+18
"The recovery would result in to add a data to throw to lose lately, acknowledgement, ACK operation?(y/n)", //p+19
"The file success of the recovery data, click arbitrarily key return.", //p+20
"The car has been full!", //p+21
"Deposit vehicle", //p+22
"Please input car owner's name:", //p+23
"Please input license plate number:", //p+24
"The journal may have no quilt exactitude to record.", //p+25
"The current price is:", //p+26
"Please input new price:", //p+27
"Price setup success, the vehicle which deposits from now on will be charge with new price and the previous vehicle still charges according to the price of the past.Click arbitrarily the key go on", //p+28
"The vehicle adds success, please put the vehicle into a car:", //p+29
"Click arbitrarily the key go on", //p+30
"Take out vehicle", //p+31
"Have no vehicle to save in the parking lot at present.", //p+32
"Did not find out that vehicle, please check an input.", //p+33
"The record has been already find out:", //p+34
"License plate number:", //p+35
"Car owner's name:", //p+36
"Save a place:", //p+37
"Year", //p+38
"Month", //p+39
"Day", //p+40
"Day", //p+41
"Hour", //p+42
"Minute", //p+43
"Deposit a time:", //p+44
"Current time:", //p+45
"When parking account:", //p+46
"Park the car expenses:", //p+47
"Dollar", //p+48
"The acknowledgement, ACK takes out that car to please to input takeout, the return please input back.", //p+49
"The vehicle takes out success and click arbitrarily the key go on.", //p+50
"Search vehicle", //p+51
"Have no vehicle to save in the parking lot at present.", //p+52
"Please input the license plate number which to check to seek:", //p+53
"Did not find out that car record", //p+54
"Look into a parking lot state", //p+55
"The parking lot still has at present", //p+56
"Gets empty a remaining car.", //p+57
"All current save vehicle:", //p+58
"Please re- input managing person's password:", //p+59
"The password inputs an error and click arbitrarily key return.", //p+60
"Password verification success, will soon get into a deluxe management command, please a careful operation.", //p+61
"The deluxe management orderany", //p+62
"Please input a deluxe management command:(input help acquisition help)", //p+63
"Orderany an input error, please re- input.\n", //p+64
"Please input a command:(input help acquisition help)", //p+65
"License plate number is", //p+66
"The modify parks the car price", //p+67
"Modify a password", //p+68
"Backup data file", //p+69
"Recovery data file", //p+70
"Land system", //p+71
"Log off system", //p+72
"System journal", //p+73
"The pure empty journal please input clear, return to a high class management an interface to please to input back.", //p+74
"Pure empty behind won't be able to recover, confirm to want pure empty?(y/n)", //p+75
"The journal is pure empty successful, click arbitrarily the key go on.", //p+76
"Invite a capacity of establish the parking lot(format:Long.Breadth, for example:5.4):", //p+77
"The capacity of parking lot is:" //p+78
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -