I would like to create a small parking system with 10 space.
Then the system may assign the 1st entered car to the nearest space.
I would like to implement the car park space using array.
And the distance is save into array.
e.g. A[2]=2 means tat at array A[2] its distance from entrance is 2
so when the car enter the car park, the system will search from the available array and assign the leaser distance's space to the driver.
Anyone have idea to guide me how to implement this ?
stacey3122 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.