停车场项目需求分析
1.头部显示
头部显示
a.当前剩余车位(默认车位100个)
2.显示停车场地图
10*10显示地图(每一车位都有自身的位置)
3.车辆进场
输入入场车牌
刷新地图
a.显示头部(剩余车位)
b.显示车辆的车牌与车辆的位置
4.车辆出场
输入出场车牌
刷新地图
a.显示头部(剩余车位)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace 停车管理系统
{
class Program
{
static string[,] parking = new string[10, 10];
static bool[,] parkTag = new bool[10, 10];
static void Main(string[] args)
{
//停车位置内容
ParkingText();
//头部
HeadTitle();
//停车地图
DrawParking();
Console.ReadLine();
while (true)
{
Console.WriteLine("请选择车辆出使状态:A--->入场 B--->出场");
string choose = Console.ReadLine();
while (true)
{
//入场
if (choose == "A")
{
Console.WriteLine("请输入进场的车牌号:");
string plant = Console.ReadLine();
string location = SetParkCar(plant);
Console.Clear();
HeadTitle();
Console.WriteLine("--------------------欢迎【{0}】入场,您的车位是【{1}】-------------------", plant, location);
Console.WriteLine("----------------------------------------------------------------------------");
DrawParking();
Console.ReadLine();
break;
}
//出场
else if (choose