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
380da8b2
Commit
380da8b2
authored
Mar 18, 2019
by
Walterio Montanez
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.cs.wallawalla.edu:walser/project-3-star-gazing
parents
6de8ae65
2a9fee8e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
2 deletions
+45
-2
Input stuff/Constellation.h
Input stuff/Constellation.h
+0
-0
Input stuff/Functions.cpp
Input stuff/Functions.cpp
+3
-2
Input stuff/Stars.cpp
Input stuff/Stars.cpp
+0
-0
Input stuff/Stars.h
Input stuff/Stars.h
+42
-0
No files found.
Star Array
/Constellation.h
→
Input stuff
/Constellation.h
View file @
380da8b2
File moved
Input stuff/Functions.cpp
View file @
380da8b2
#include "Functions.h"
#include "Stars.h"
#include <string>
#include <iostream>
#include <vector>
...
...
@@ -679,7 +680,7 @@ vector <pair<double, double>> constellationCoordinates () {
}
void
viewWindow
(
vector
<
pair
<
double
,
double
>>
constellationCoordinates
,
vector
<
pair
<
double
,
double
>>
window
)
{
void
printConstellation
(
vector
<
pair
<
double
,
double
>>
constellationCoordinates
,
vector
<
pair
<
double
,
double
>>
window
)
{
int
inrangeCount
=
0
;
int
coordinateCount
=
0
;
...
...
@@ -698,7 +699,7 @@ void viewWindow (vector <pair<double,double>> constellationCoordinates, vector <
cout
<<
"Constellation"
<<
constellationNamer
(
coordinateCount
)
<<
"is fully in view."
<<
endl
<<
"Here is an image."
<<
endl
;
constellationOutputter
(
coordinateCount
);
}
else
if
(
inrangeCount
>
4
&&
inrangeCount
>
0
)
{
}
else
if
(
inrangeCount
<
4
&&
inrangeCount
>
0
)
{
cout
<<
"Constellation"
<<
constellationNamer
(
coordinateCount
)
<<
"is partially in view."
<<
endl
<<
"Here is an image."
<<
endl
;
constellationOutputter
(
coordinateCount
);
...
...
Star Array
/Stars.cpp
→
Input stuff
/Stars.cpp
View file @
380da8b2
File moved
Star Array
/Stars.h
→
Input stuff
/Stars.h
View file @
380da8b2
...
...
@@ -15,23 +15,23 @@ class Stars {
public:
void
CanisMajor
();
void
Eridanius
();
void
Gemini
();
void
Orion
();
void
Tarus
();
void
Bootes
();
void
Cancer
();
void
Leo
();
void
Virgo
();
void
Aquila
();
void
Sagistarius
();
void
Scorpius
();
void
Capricornus
();
void
Pegasus
();
void
Pisces
();
void
UrsaMinor
();
void
UrsaMajor
();
void
CanisMajor
0
();
void
Eridanius
1
();
void
Gemini
2
();
void
Orion
3
();
void
Tarus
4
();
void
Bootes
5
();
void
Cancer
6
();
void
Leo
7
();
void
Virgo
8
();
void
Aquila
9
();
void
Sagistarius
10
();
void
Scorpius
11
();
void
Capricornus
12
();
void
Pegasus
13
();
void
Pisces
14
();
void
UrsaMinor
15
();
void
UrsaMajor
16
();
private:
...
...
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