停车场管理系统.cpp

来自「用户登陆系统存入车辆(存入时间」· C++ 代码 · 共 85 行

CPP
85
字号
// 停车场管理系统.cpp : Defines the entry point for the console application.
//

#include "StdAfx.h"
#include "typedef.h"
#include "change.h"
#include <conio.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>


int main(int argc, char* argv[])
{
	if(login() == true)
	{
		char mcommand[10];
		while(1)
		{
			system("cls");
			if (user.language == 'c')
			{
				In_hander_ch();
			} 
			else
			{
				In_hander_en();
			}

			while(1)
			{
				printf("\n%s",*(p_language_print + 65));/*请输入命令(输入help获得帮助):*/
				scanf("%s",mcommand);
				
				if     (strcmp(mcommand,"deposit") == 0)
				{
					fun_input();
					break;
				}
				else if(strcmp(mcommand,"takeout") == 0)
				{
					fun_output();
					break;
				}
				else if(strcmp(mcommand,"search") == 0)
				{
					fun_search();
					break;
				}
				else if(strcmp(mcommand,"state") == 0)
				{
					fun_state();
					break;
				}
				else if(strcmp(mcommand,"advanced") == 0)
				{
					fun_admin();
					break;
				}
				else if(strcmp(mcommand,"quick") == 0)
				{
					fun_quick();
					break;
				}
				else if(strcmp(mcommand,"help") == 0)
				{
					if (user.language == 'c')
					{
						In_help_ch();
					} 
					else
					{
						In_help_en();
					}
				}
				else
				{
					printf("\n%s",*(p_language_print + 64));/*命令输入错误,请重新输入!*/
				}
			}
		}
	}
	return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?