Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Gruppe04
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Frederik Simonsen
Gruppe04
Commits
35d0954b
Commit
35d0954b
authored
3 years ago
by
Sondre Sand
Browse files
Options
Downloads
Patches
Plain Diff
lagt til tilbakemelding når rute blir lagt til i map
parent
0140a71c
No related branches found
No related tags found
1 merge request
!2
Frederik
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
rute.cpp
+0
-2
0 additions, 2 deletions
rute.cpp
ruter.cpp
+7
-0
7 additions, 0 deletions
ruter.cpp
ruter.h
+1
-0
1 addition, 0 deletions
ruter.h
with
8 additions
and
2 deletions
rute.cpp
+
0
−
2
View file @
35d0954b
...
...
@@ -130,8 +130,6 @@ void Rute::lesData() {
// Forsøker å lese evt. ny eller korrekt stopp:
cout
<<
"
\n
Stoppested (entydig navn / tall / ENTER for å avslutte): "
;
getline
(
cin
,
navn
);
}
}
...
...
This diff is collapsed.
Click to expand it.
ruter.cpp
+
7
−
0
View file @
35d0954b
...
...
@@ -105,6 +105,8 @@ void Ruter::nyRute() {
// Hvis ugyldig rute, rydd opp i pekere *
if
(
nyRute
->
erListeGyldig
()){
rutene
[
ruteNr
]
=
nyRute
;
cout
<<
"
\n
Ny rute er lagt til:
\n
"
;
ruteBeskrivelse
(
ruteNr
);
}
else
nyRute
->
slettData
();
...
...
@@ -126,6 +128,11 @@ void Ruter::ruteBeskrivelse() {
cout
<<
"
\n
Ruten med dette rutenr eksisterer ikke..
\n
"
;
}
void
Ruter
::
ruteBeskrivelse
(
const
int
ruteNr
){
auto
it
=
rutene
.
find
(
ruteNr
);
it
->
second
->
skrivBeskrivelse
();
}
/**
* ruteTabell()
*/
...
...
This diff is collapsed.
Click to expand it.
ruter.h
+
1
−
0
View file @
35d0954b
...
...
@@ -22,6 +22,7 @@ class Ruter {
void
lesFraFil
();
void
nyRute
();
void
ruteBeskrivelse
();
void
ruteBeskrivelse
(
const
int
ruteNr
);
void
ruteTabell
();
void
skrivAlle
();
void
skrivMeny
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment