Commit 4e9430c0 authored by Brandon Reid's avatar Brandon Reid

autosave

parent 609f776a
......@@ -116,17 +116,17 @@ pair<double,double> altAndAziPair (double altitude, string Direction) {
do {
cout << "Enter the altitude at which you are looking (0-90): ";
if (!(cin >> altitude)) { // validates that numbers were entered and checks input
cerr << "Error! Please enter a valid integer." << endl;
cin.clear();
cin.ignore(1000, '\n');
continue;
}
if (altitude >= 0 && altitude <= 90) {
break;
} else {
cerr << "Please put in a valid value." << endl;
}
if (!(cin >> altitude)) { // validates that numbers were entered and checks input
cerr << "Error! Please enter a valid integer." << endl;
cin.clear();
cin.ignore(1000, '\n');
continue;
}
if (altitude >= 0 && altitude <= 90) {
break;
} else {
cerr << "Please put in a valid value." << endl;
}
} while (true);
do {
......
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