.NET c#简单实现停车场管理系统(控制台)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _08停车场管理系统
{
    class Program
    {
        //1.创建停车位数组
        /// 
        /// 停车位置的数组,用来存储停车位置
        /// 
        static string[,] parking = new string[10, 10];
        //3.判断车位是否为空,记录空车位个数,true车位空,false车位不为空
        /// 
        /// 定义一个bool类型的数组用来判断每个车位是否为空
        /// 
        static bool[,] parkTag = new bool[10, 10];
        static void Main(string[] args)
        {
            //2.创建一个方法给停车位数组填充内容,标号,调用次方法
            InitianlParking();
            //4.创建一个方法用来绘制系统的标题,并调用,绘制标题时输出空车位数
            SetTitle();
            //5.绘制车位,既输出数组,创建一个绘制车位的方法并调用
            DrawParking();
            Console.ReadLine();
            //6.选择车辆的状态入场/出场
            while (true)
            {
                Console.WriteLine("请选择车辆状态:A--入场   B--出厂");
                string choose = Console.ReadLi

你可能感兴趣的:(.NET项目实例,.NET)