Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mgoullie
sp4_exercises
Commits
db1ff07e
Unverified
Commit
db1ff07e
authored
Oct 08, 2020
by
Guillaume Anciaux
Browse files
little cleaning of the solution
parent
dbdd3296
Changes
2
Hide whitespace changes
Inline
Side-by-side
exercises/week3/stl/solution/CMakeLists.txt
View file @
db1ff07e
cmake_minimum_required
(
VERSION 2.6
)
project
(
stl-exercise
)
add_executable
(
stl
main.cc
...
...
exercises/week3/stl/solution/main.cc
View file @
db1ff07e
...
...
@@ -114,11 +114,10 @@ int main(int argc, char ** argv){
//Triplet origin_coordinates(0.,0.,0.);
map
[
"sun"
]
=
origin_coordinates
;
std
::
map
<
std
::
string
,
Triplet
>::
iter
ato
r
end3
=
map
.
end
();
a
u
to
end3
=
map
.
end
();
//origin_coordinates.coords[0] = 1.;
origin_coordinates
[
0
]
=
1.
;
std
::
map
<
std
::
string
,
Triplet
>::
iter
ato
r
it3
=
map
.
find
(
"earth"
);
a
u
to
it3
=
map
.
find
(
"earth"
);
if
(
it3
==
end3
)
map
[
"earth"
]
=
origin_coordinates
;
std
::
set
<
std
::
string
>
keys
;
...
...
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