For Programmers: Free Programming Magazines  


Home > Archive > C# > May 2005 > Distance Finder Problem!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Distance Finder Problem!
JimmyJaconi

2005-05-11, 4:08 pm

http://www.wrestlefury.com/DataFiles.zip

The zip file contains a map, a spread sheet of distances between these towns and two files of data extracted from the spread sheet. The extracted data is a list of the towns and a table of distances. Both these files have the number of entries in the file on the first line. Click the following link to see a picture of the program:

http://www.wrestlefury.com/distancefinder.jpg

I was wondering if anyone can help with the coding, i've got a bit of code which is underneath, but i still think this is fairly hard. I've created the Interface, just need to do the remainder of the code. Any code or hints will be very much appreciated.

Thanks

PHP:

private Hashtable _distances;

int[,] distances

_distances
=new Hashtable();

Hashtable birminghamDistances=new Hashtable();
birminghamDistances.Add("Birmingham",0);
birminghamDistances.Add("Cardiff",103);
...
_distances.Add("Birmingham",birminghamDistances);

// repeat for all towns

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com