Code:
double array[5][2] = {{0, 4320.55}, {0, 32.77}, {0, 561.52}, {0,243.57}, {0,5479.16}};
string cities[5] = {"NewYork", "Westbury", "NewJersey", "England", "Miami"}
After reading the above posts I have it in a state in which it compiles.
Now I want to see if I got the logic right.
1) make two string variables that each store the 2 cities that the user wants to know the distances from.
2) Then check the array for the distance between both cities.
I'm fairly new to working with an array of doubles, I have worked with single arrays quite a few times though
What kind of calculation am I looking to do to find the distance between them?
i.e. array[0] - array [2] = distance between them?
Dont quite know how I'm going to implement this..