Question: To implement a program in c++ that presents a map of a city. The map information is contained in a text file. Each line in

To implement a program in c++ that presents a map of a city. The map information is contained in a text file. Each line in the file in the first position is the name of an intersection, followed by pairs of names of other intersections and the length of the street from the first intersection to the second, for example:

Washington Lake 250

Maple Pine 150 Hill 650

Note that it is possible to have one-way streets, it is also possible for the streets in the two different directions to be different in length, but it is not possible to have two different streets in the same direction between the same intersections.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!