Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
FIC_DK_P GA Solving
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
M3TAL
FIC_DK_P GA Solving
Commits
b350d092
Commit
b350d092
authored
May 14, 2020
by
Alexis Lebis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved operator<< for course
parent
706034b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
course.cpp
src/model/course.cpp
+13
-0
No files found.
src/model/course.cpp
View file @
b350d092
...
...
@@ -241,6 +241,19 @@ std::ostream& operator<<(std::ostream& Stream, const Course & c)
tf
+=
std
::
to_string
(
c
.
timeFrame
().
at
(
c
.
timeFrame
().
size
()
-
1
));
s
+=
"
\n\t
TimeFrames: ["
+
tf
+
"]"
;
}
s
+=
"
\n\t
Requirement: ["
;
for
(
int
i
=
0
;
i
<
c
.
prerequisites
().
size
();
i
++
)
{
s
+=
""
+
c
.
prerequisites
().
at
(
i
).
c_name
()
+
" ; "
;
}
s
+=
"]"
;
s
+=
"
\n\t
Teaches: ["
;
for
(
int
i
=
0
;
i
<
c
.
teachedCompetenciesWeighted
().
size
();
i
++
)
{
s
+=
""
+
std
::
to_string
(
c
.
teachedCompetenciesWeighted
().
at
(
i
).
second
)
+
"."
+
c
.
teachedCompetenciesWeighted
().
at
(
i
).
first
.
c_name
()
+
" ; "
;
}
s
+=
"]"
;
Stream
<<
s
;
return
Stream
;
}
...
...
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