Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
Project 3 Star Gazing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Walsh
Project 3 Star Gazing
Commits
4e9430c0
Commit
4e9430c0
authored
Mar 13, 2019
by
Brandon Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autosave
parent
609f776a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
Input stuff/Functions.cpp
Input stuff/Functions.cpp
+11
-11
No files found.
Input stuff/Functions.cpp
View file @
4e9430c0
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment