Commit 47f89c3e authored by Eric Walsh's avatar Eric Walsh

Merge branch 'master' of gitlab.cs.wallawalla.edu:walser/project-3-star-gazing

parents ed3c6bde 17a793ec
ff
\ No newline at end of file
#include "countries.h"
#include <iostream> //make a function
#include <utitlity>
#include <utility>
#include <string>
#include <map>
#include <ifstream>
#include <fstream>
using namespace std;
//function returns map of pairs
pair<double, double> longAndLat () {
ifstream fin;
fin.open("countries.txt");
ifstream filestream("countries.txt");
print("Print this", filestream);
//variables
vector <pair<double, double>> coordinateVector;
......@@ -31,7 +33,9 @@ pair<double, double> longAndLat () {
tempMap.emplace(placeName, tempPair);
placeName.clear();
}
return tempMap;
}
// TODO Print the cities
do {
......@@ -51,4 +55,4 @@ pair<double, double> longAndLat () {
return coordinateVector.at(cityNum - 1);
}
\ No newline at end of file
}
//North America
Seattle, Washington. 47.6062° N. 122.3321° W
Boise, Idaho. 43.6150° N. 116.2023° W
Helena, Montana. 46.5891° N. 112.0391° W
......@@ -12,13 +11,9 @@ Topeka, Kansas. 39.0473° N. 95.6752° W
Raleigh, North Carolina. 35.7796° N. 78.6382° W
Austin, Texas. 30.2672° N. 97.7431° W
Miami, Florida. 25.7617° N. 80.1918° W
//South America
Bogota, Columbia. 4.7110° N. 74.0721° W
Brasilia, Brazil 15.8267° S. 47.9218° W
Buenos Aires, Argentina 34.6037° S. 58.3816° W
//Africa
En Nahud, Sudan 12.6948° N. 28.4280° E
Agadez, Niger 16.9742° N. 7.9865° E
Kiffa, Mauritana 16.8740° N. 11.4339° W
......@@ -28,24 +23,17 @@ Kindu, Democratic Republic of the Congo 2.9492° S. 25.9231° E
Namacunde, Angola 17.3082° S. 15.8452° E
Lugela, Mozambique 16.3693° S. 36.7820° E
Ihosy, Madagascar 22.4009° S. 46.1279° E
//Europe
Afif, Saudi Arabia 23.9052° N. 42.9125° E
Buky, Ukraine 49.0945° N. 30.4051° E
Paris, France 48.8566° N. 2.3522° E
Bor, Russia 56.3588° N. 44.0767° E
Nagpur, India 21.1458° N. 79.0882° E
Naggu, Tibet 31.4762° N. 92.0512° E
//Asia
Bogd, Mongolia 44.6692° N. 102.1719° E
Quanzhou, Fujian 24.8741° N. 118.6757° E
Busan, South Korea 35.1796° N. 129.0756° E
Nagoya, Japan 35.1814° N. 136.9064° E
//Australia
Kalgorie, Australia 30.7490° S. 121.4660° E
Coober Pedy, South Australia. 29.0139° S. 134.7533° E
Newman, Western Australia. 23.3593° S. 119.7350° E
Sydney, Australia 33.8688° S. 151.2093° E
Sydney, Australia 33.8688° S. 151.2093° E
\ No newline at end of file
......@@ -12,6 +12,7 @@
*/
#include <iostream>
#include "countries.cpp"
#include <vector>
using namespace std;
......@@ -21,5 +22,8 @@ int main {
//Welcomeing the user
cout << "Welcome to the Star Gazer Application!" << endl;
pair<double, double> longAndLat ();
return 0;
}
\ No newline at end of file
......@@ -20,4 +20,7 @@ Who does what (tentative):
- orbital models (visual aid) (Elizabeth)
- Pass user input to algorithm (Brandon and Moses)
- User interface (Elon)
- Algorithm (Eric)
\ No newline at end of file
- Algorithm (Eric)
-
The project that Eric, Brandon
\ No newline at end of file
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