|
-
Jun 25th, 2004, 07:18 AM
#9
PowerPoster
Originally posted by mendhak
That sounds pretty good too, except for the amount of work to be put in, I guess.
My first guess was to create a class with three properties: FromCity, ToCity, Distance.
If you consider this for a moment, you are going to have to create an instance of the class for each possible combination - in the case of 6 cities that means 25 instances.
If you have a fixed number of cities, you class properties could be
FromCity, ToCity1, Distance1, ToCity2, Distance2 etc.
I think the array approach is better in this case.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|