Commit 4a242c9e authored by Walterio Montanez's avatar Walterio Montanez

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

parents e1578c10 6e8c0c23
......@@ -583,80 +583,118 @@ void printConstellation (vector <pair<double,double>> constellationCoordinates,
}
string constellationNamer (int index) {
if (index == 3) {
return " Canis Major ";
} else if (index == 7) {
return " Eridanius ";
} else if (index == 11) {
return " Gemini ";
} else if (index == 15) {
return " Orion ";
} else if (index == 19) {
return " Tarus ";
} else if (index == 23) {
return " Bootes ";
} else if (index == 27) {
return " Cancer";
} else if (index == 31) {
return " Leo ";
} else if (index == 35) {
return " Virgo ";
} else if (index == 39) {
return " Aquila ";
} else if (index == 43) {
return " Sagitarius ";
} else if (index == 47) {
return " Scorpius ";
} else if (index == 51) {
return " Capricornus ";
} else if (index == 55) {
return " Pegasus ";
} else if (index == 59) {
return " Pisces ";
} else if (index == 63) {
return " Ursa Minor ";
} else if (index == 67) {
return " Ursa Major ";
} else {
return " Unknown constellation";
switch (index) {
case 3:
return " Canis Major ";
case 7:
return " Eridanius ";
case 11:
return " Gemini ";
case 15:
return " Orion ";
case 19:
return " Tarus ";
case 23:
return " Bootes ";
case 27:
return " Cancer";
case 31:
return " Leo ";
case 35:
return " Virgo ";
case 39:
return " Aquila ";
case 43:
return " Sagitarius ";
case 47:
return " Scorpius ";
case 51:
return " Capricornus ";
case 55:
return " Pegasus ";
case 59:
return " Pisces ";
case 63:
return " Ursa Minor ";
case 67:
return " Ursa Major ";
default:
return " Unknown constellation ";
}
}
void constellationOutputter (int index) {
Stars a;
if (index == 3) {
a.CanisMajor0();
} else if (index == 7) {
a.Eridanius1();
} else if (index == 11) {
a.Gemini2();
} else if (index == 15) {
a.Orion3();
} else if (index == 19) {
a.Tarus4();
} else if (index == 23) {
a.Bootes5();
} else if (index == 27) {
a.Cancer6();
} else if (index == 31) {
a.Leo7();
} else if (index == 35) {
a.Virgo8();
} else if (index == 39) {
a.Aquila9();
} else if (index == 43) {
a.Sagistarius10();
} else if (index == 47) {
a.Scorpius11();
} else if (index == 51) {
a.Capricornus12();
} else if (index == 55) {
a.Pegasus13();
} else if (index == 59) {
a.Pisces14();
} else if (index == 63) {
a.UrsaMinor15();
} else if (index == 67) {
a.UrsaMajor16();
switch (index) {
case 3:
a.CanisMajor0();
cout << endl;
break;
case 7:
a.Eridanius1();
cout << endl;
break;
case 11:
a.Gemini2();
cout << endl;
break;
case 15:
a.Orion3();
cout << endl;
break;
case 19:
a.Tarus4();
cout << endl;
break;
case 23:
a.Bootes5();
cout << endl;
break;
case 27:
a.Cancer6();
cout << endl;
break;
case 31:
a.Leo7();
cout << endl;
break;
case 35:
a.Virgo8();
cout << endl;
break;
case 39:
a.Aquila9();
cout << endl;
break;
case 43:
a.Sagistarius10();
cout << endl;
break;
case 47:
a.Scorpius11();
cout << endl;
break;
case 51:
a.Capricornus12();
cout << endl;
break;
case 55:
a.Pegasus13();
cout << endl;
break;
case 59:
a.Pisces14();
cout << endl;
break;
case 63:
a.UrsaMinor15();
cout << endl;
break;
case 67:
a.UrsaMajor16();
cout << endl;
break;
default:
cout << 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