Demo entry 6625843

C#

   

Submitted by anonymous on Jun 22, 2017 at 10:13
Language: C#. Code size: 442 Bytes.

using System.Drawing;//Car类代码
namespace ParkingLot
{
    class Car
    {
        public Point center;
        public int spaceNum;
        public Car(Point center, int spaceNum)
        {
            this.center = center;
            this.spaceNum = spaceNum;
        }
        public void Move(Point center, int spaceNum)
        {
            this.center = center;
            this.spaceNum = spaceNum;
        }
    }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).