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
3a8291e5
Commit
3a8291e5
authored
May 08, 2020
by
Alexis Lebis
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix m3tal/csdvp-evolutionary-alogirthm-optimization#3
Mostly due to a bad vector access in the overriden operator<<
parent
a9494406
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
course.cpp
src/model/course.cpp
+8
-5
No files found.
src/model/course.cpp
View file @
3a8291e5
...
...
@@ -18,7 +18,7 @@ int Course::COURSE_COUNTER = 0;
Course
Course
::
build
(
int
ects
,
std
::
string
name
)
{
int
id
=
Course
::
assignID
();
if
(
name
.
empty
())
name
=
"Course#"
+
std
::
to_string
(
id
);
...
...
@@ -234,10 +234,13 @@ std::ostream& operator<<(std::ostream& Stream, const Course & c)
{
std
::
string
s
=
"Course
\n\t
id:"
+
std
::
to_string
(
c
.
id
())
+
"
\n\t
name:"
+
c
.
name
()
+
"
\n\t
ECTS: "
+
std
::
to_string
(
c
.
ects
());
std
::
string
tf
;
for
(
int
i
=
0
;
i
<
c
.
timeFrame
().
size
()
-
1
;
i
++
)
tf
+=
std
::
to_string
(
c
.
timeFrame
().
at
(
i
))
+
" ; "
;
tf
+=
std
::
to_string
(
c
.
timeFrame
().
at
(
c
.
timeFrame
().
size
()
-
1
));
s
+=
"
\n\t
TimeFrames: ["
+
tf
+
"]"
;
if
(
c
.
timeFrame
().
size
()
>
0
)
{
for
(
int
i
=
0
;
i
<
c
.
timeFrame
().
size
()
-
1
;
i
++
)
tf
+=
std
::
to_string
(
c
.
timeFrame
().
at
(
i
))
+
" ; "
;
tf
+=
std
::
to_string
(
c
.
timeFrame
().
at
(
c
.
timeFrame
().
size
()
-
1
));
s
+=
"
\n\t
TimeFrames: ["
+
tf
+
"]"
;
}
Stream
<<
s
;
return
Stream
;
}
...
...
Alexis Lebis
@alexis.lebis
mentioned in issue
#3 (closed)
·
May 08, 2020
mentioned in issue
#3 (closed)
mentioned in issue #3
Toggle commit list
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