Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
cpp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
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
edu
cpp
Commits
6e135d00
Commit
6e135d00
authored
Dec 09, 2020
by
Hans Buchmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ziele 10.12.20
parent
88d125f5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
9 deletions
+37
-9
2020-students.txt
2020-students.txt
+1
-2
6-cia/src/geo2d-vz.cc
6-cia/src/geo2d-vz.cc
+21
-6
ziele-bb.md
ziele-bb.md
+7
-0
ziele-vz.md
ziele-vz.md
+8
-1
No files found.
2020-students.txt
View file @
6e135d00
...
...
@@ -4,5 +4,4 @@ vincent.rigter@students.fhnw.ch;marvin.tritz@students.fhnw.ch;kim.schenk@student
BB
alper.arslan@students.fhnw.ch;roger.syfrig@students.fhnw.ch;marco.meier5@students.fhnw.ch;marc.friedli@students.fhnw.ch;lars.zihlmann@students.fhnw.ch;joelle.hoechle@students.fhnw.ch;cedric.achermann@students.fhnw.ch;maurice.steiner@students.fhnw.ch;nicola.perrin@students.fhnw.ch;marc.bischoff@students.fhnw.ch;johnny.jordi@students.fhnw.ch;philippe.wiedmer@students.fhnw.ch;yanlung.hauser@students.fhnw.ch;joshua.hirsbrunner@students.fhnw.ch;rolf.haberstich@students.fhnw.ch;sandro.good@students.fhnw.ch;philippe.schenk@students.fhnw.ch;daniele.sentina@students.fhnw.ch;laxen.sivarajah@students.fhnw.ch;yannick.hmina@students.fhnw.ch;fabio.franz@students.fhnw.ch
6-cia/src/geo2d-vz.cc
View file @
6e135d00
...
...
@@ -15,7 +15,9 @@ class Point
//non default constructor
Point
(
const
Point
&
other
);
//copy constructor
~
Point
();
//destructor no parameters
double
distance
(
Point
&
other
);
//other is a c++ reference
double
distance
(
const
Point
&
other
)
const
;
//| |--- my own variables cannot be changed
//other cannot be changed
static
double
distance
(
Point
p
,
Point
q
);
private:
...
...
@@ -50,14 +52,17 @@ double Point::distance(Point p,Point q) //is not a member of Point
// |private
}
double
Point
::
distance
(
Point
&
other
)
//is a member of Point
double
Point
::
distance
(
const
Point
&
other
)
const
//is a member of Point
// |----------c++ reference
{
/* hack
other.xc=0;
other.yc=0;
/* hack
other.xc=0;
error
other.yc=0;
error
*/
/* other hack
xc=0; error
yc=0; error
*/
return
std
::
hypot
(
xc
-
other
.
xc
,
yc
-
other
.
yc
);
}
...
...
@@ -99,6 +104,16 @@ constructor of Point 6,8
d=5
destructor of Point 6,8
destructor of Point 3,4
*/
/*
with other as const c++ reference
distance cannot change the variable of instance
constructor of Point 3,4
constructor of Point 6,8
d=5
destructor of Point 6,8
destructor of Point 3,4
*/
...
...
ziele-bb.md
View file @
6e135d00
...
...
@@ -95,3 +95,10 @@
-
C++ Referenz
-
keyword
``const``
## 10.12.2020
-
Prüfung besprechen
-
6-cia: Folien Seite 14-19
-
`class Line`
-
constructor
-
by value vs. by reference
ziele-vz.md
View file @
6e135d00
...
...
@@ -95,5 +95,12 @@
-
pointer Referenz
-
C++ Referenz
-
keyword
``const``
## 10.12.202
-
Prüfung besprechen
-
6-cia: Folien Seite 14-19
-
`class Line`
-
constructor
-
by value vs. by reference
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