Commit b87f11b5 authored by Brandon Reid's avatar Brandon Reid

autosave

parent 91bde0d0
......@@ -138,7 +138,7 @@ pair<double,double> altAndAziPair () {
}
} while (true);
do {
do { // Prompt and check for cardinal direction
cout << "Enter a cardinal direction (North, South, East, West, Northeast, Southeast, Southwest, or Northwest): ";
cin >> direction;
......@@ -222,7 +222,7 @@ double dateToHour (string month, int year, int day, int hour, int minute) { // C
return totHours;
}
bool isLeap (int year) { // bool check for leap year
bool isLeap (int year) { // bool check for leap years
if ((year % 4) == 0) {
return true;
} else {
......@@ -239,7 +239,7 @@ vector <pair<double, double>> viewFinder (pair <double, double> centerPt) { // f
pair<double, double> pair4;
if (centerPt.second > 0) {
if (centerPt.first > 20.125 && centerPt.second < 51) { // done
if (centerPt.first > 20.125 && centerPt.second < 51) {
for(int i = 0; i < 4; i++) {
if (i == 0) { // top left point
pair1 = make_pair((centerPt.first + 3.875) - 24, centerPt.second + 39);
......@@ -255,7 +255,7 @@ vector <pair<double, double>> viewFinder (pair <double, double> centerPt) { // f
corners.push_back(pair4);
}
}
} else if (centerPt.first < 3.875 && centerPt.second < 51) { // done
} else if (centerPt.first < 3.875 && centerPt.second < 51) {
for(int i = 0; i < 4; i++) {
if (i == 0) { // top left point
pair1 = make_pair((centerPt.first + 3.875), centerPt.second + 39);
......@@ -271,7 +271,7 @@ vector <pair<double, double>> viewFinder (pair <double, double> centerPt) { // f
corners.push_back(pair4);
}
}
} else if (centerPt.first > 20.125 && centerPt.second > 51) { // done
} else if (centerPt.first > 20.125 && centerPt.second > 51) {
for(int i = 0; i < 4; i++) {
if (i == 0) { // top left point
pair1 = make_pair((centerPt.first + 3.875) - 24, -90 + (centerPt.second - 51));
......@@ -287,7 +287,7 @@ vector <pair<double, double>> viewFinder (pair <double, double> centerPt) { // f
corners.push_back(pair4);
}
}
} else if (centerPt.first < 3.875 && centerPt.second > 51) { // done
} else if (centerPt.first < 3.875 && centerPt.second > 51) {
for(int i = 0; i < 4; i++) {
if (i == 0) { // top left point
pair1 = make_pair(centerPt.first + 3.875, -90 + (centerPt.second - 51));
......@@ -303,7 +303,7 @@ vector <pair<double, double>> viewFinder (pair <double, double> centerPt) { // f
corners.push_back(pair4);
}
}
} else if ((centerPt.first < 20.125 && centerPt.first > 3.875) && centerPt.second > 51) { // done
} else if ((centerPt.first < 20.125 && centerPt.first > 3.875) && centerPt.second > 51) {
for(int i = 0; i < 4; i++) {
if (i == 0) { // top left point
pair1 = make_pair(centerPt.first + 3.875, -90 + (centerPt.second - 51));
......@@ -319,7 +319,7 @@ vector <pair<double, double>> viewFinder (pair <double, double> centerPt) { // f
corners.push_back(pair4);
}
}
} else if ((centerPt.first < 20.125 && centerPt.first > 3.875) && centerPt.second < 51) { // done
} else if ((centerPt.first < 20.125 && centerPt.first > 3.875) && centerPt.second < 51) {
for(int i = 0; i < 4; i++) {
if (i == 0) { // top left point
pair1 = make_pair(centerPt.first + 3.875, centerPt.second + 39);
......@@ -337,7 +337,7 @@ vector <pair<double, double>> viewFinder (pair <double, double> centerPt) { // f
}
}
} else if (centerPt.second < 0) {
if (centerPt.first > 20.125 && centerPt.second > -51) { // done
if (centerPt.first > 20.125 && centerPt.second > -51) {
for(int i = 0; i < 4; i++) {
if (i == 0) { // top left point
pair1 = make_pair((centerPt.first + 3.875) - 24, centerPt.second + 39);
......@@ -353,7 +353,7 @@ vector <pair<double, double>> viewFinder (pair <double, double> centerPt) { // f
corners.push_back(pair4);
}
}
} else if (centerPt.first < 3.875 && centerPt.second > -51) { // done
} else if (centerPt.first < 3.875 && centerPt.second > -51) {
for(int i = 0; i < 4; i++) {
if (i == 0) { // top left point
pair1 = make_pair((centerPt.first + 3.875), centerPt.second + 39);
......@@ -369,7 +369,7 @@ vector <pair<double, double>> viewFinder (pair <double, double> centerPt) { // f
corners.push_back(pair4);
}
}
} else if (centerPt.first > 20.125 && centerPt.second < -51) { // done
} else if (centerPt.first > 20.125 && centerPt.second < -51) {
for(int i = 0; i < 4; i++) {
if (i == 0) { // top left point
pair1 = make_pair((centerPt.first + 3.875) - 24, centerPt.second + 39);
......@@ -439,7 +439,7 @@ vector <pair<double, double>> viewFinder (pair <double, double> centerPt) { // f
return corners;
}
vector <pair<double, double>> constellationCoordinates () {
vector <pair<double, double>> constellationCoordinates () { // Function to store the coordinates of the constellations
vector <pair<double, double>> coordinates;
// Canis Major
pair<double, double> pair1a;
......
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