Commit 7df7964f authored by Brandon Reid's avatar Brandon Reid

autosave

parent 75079868
......@@ -15,11 +15,13 @@ int main () {
int yearInput = 0;
int hourInput = 0;
int minuteInput = 0;
double hoursSinceYear = 0;
pair <double,double> AltAndAziPair;
pair <double, double> longAndLatPair;
vector <pair<double,double>> window;
vector <pair<double,double>> coordinates;
cout << "==============Welcome to the Star-Gazer v 1.0==============" << endl;
do {
yearInput = yearPrompt();
......@@ -56,8 +58,10 @@ int main () {
// pair<double,double> horizontal;
// horizontal.first = 20;
// horizontal.second = 270;
hoursSinceYear = dateToHour(monthInput, monthDay, hourInput, minuteInput);
pair<double,double> returnValue;
returnValue = algorithm(641.9, longAndLatPair, AltAndAziPair, 2017);
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;
......
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