You can create a 2D array and store there the value of the distances and then access them by subscripting
eg:
1 2 3 4 5 6
|
int array[4][4] = {
{ 0, 95, 173, 103 },
{ 95, 0, 101, 192 },
//...
};
Distance_from_city2_and_city3 = array[2][3];
|
Last edited on