Commit 0b8883ea authored by Elon Bontemps's avatar Elon Bontemps

autosave

parent aa104ca1
......@@ -10,6 +10,8 @@ using namespace std;
pair<double, double> longAndLat () {
ifstream fin;
fin.open("countries.txt");
ifstream filestream("countries.txt");
print("Print this", filestream);
//variables
vector <pair<double, double>> coordinateVector;
......@@ -22,9 +24,7 @@ pair<double, double> longAndLat () {
exit(1);
}
while(!fin.eof()) {
pair<double,double> tempPair;
getline(fin, placeName, '.');
getline(fin, tempPair.first, '.');
......@@ -33,6 +33,10 @@ pair<double, double> longAndLat () {
tempMap.emplace(placeName, tempPair);
placeName.clear();
}
//<<<<<<< HEAD
return tempMap;
}
//=======
// TODO Print the cities
......@@ -53,4 +57,5 @@ pair<double, double> longAndLat () {
return coordinateVector.at(cityNum - 1);
}
\ No newline at end of file
}
//>>>>>>> 37773ebd81c48909890df464721d8b1870634f96
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment