Commit 0b7178d8 authored by Eric Walsh's avatar Eric Walsh

autosave

parent 2adceff8
......@@ -4,7 +4,7 @@
#include <cmath>
#include <iostream>
#include <iomanip>
const bool DEBUG = true;
const bool DEBUG = false;
//the main algorithm function converts
using namespace std;
......
......@@ -13,7 +13,7 @@ int hourPrompt (); // Prompts and checks hour input
int minutePrompt (); // Prompts and checks minute input
double dateToHour (string month, int day, int hour, int minute); // Converts full date to hour
double dateToHour (string month, int day, int year, int hour, int minute); // Converts full date to hour
pair<double,double> altAndAziPair (); // Creates pair of alitutude and azimuth
......
......@@ -58,12 +58,11 @@ int main () {
// pair<double,double> horizontal;
// horizontal.first = 20;
// horizontal.second = 270;
hoursSinceYear = dateToHour(monthInput, monthDay, hourInput, minuteInput);
hoursSinceYear = dateToHour(monthInput, yearInput, monthDay, hourInput, minuteInput);
pair<double,double> returnValue;
returnValue = algorithm(hoursSinceYear, longAndLatPair, AltAndAziPair, yearInput);
cout << "The algorithm function, when its January 27, 2017, at 5:45:54 pm, at a lat and long of -46,89 and when looking at the sky at 20, 270 (in horizontal coordinates), gives: " << endl
<< "Right ascention of: " << returnValue.first << " and a declination of: " << returnValue.second << endl;
//cout << "The function returns a right ascention of: " << returnValue.first << " and a declination of: " << returnValue.second << endl;
window = viewFinder(returnValue);
coordinates = constellationCoordinates ();
......
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