I have a set of data imputed into a set of arrays as the following:
for (int i=0;getline(file,(cities[i]),',');i++)
{
getline(file, countries[i], ',');
getline(file, latitudes[i], ',') ;
getline(file, longitudes[i]);
}
How do I sort the array line of latitudes and longitudes without changing countries and city it is associated with?