Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gruppe33
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abdulsamad Sheikh
Gruppe33
Commits
91e8426f
Commit
91e8426f
authored
1 year ago
by
Abdulsamad Sheikh
Browse files
Options
Downloads
Patches
Plain Diff
Minor bug fixes
parent
05de110c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
bruktting.cpp
+1
-1
1 addition, 1 deletion
bruktting.cpp
kategori.h
+3
-3
3 additions, 3 deletions
kategori.h
kunde.cpp
+1
-2
1 addition, 2 deletions
kunde.cpp
kunde.h
+1
-1
1 addition, 1 deletion
kunde.h
kunder.cpp
+12
-2
12 additions, 2 deletions
kunder.cpp
with
18 additions
and
9 deletions
bruktting.cpp
+
1
−
1
View file @
91e8426f
...
...
@@ -82,7 +82,7 @@ void BruktTing::endreData() {
}
case
2
:
{
std
::
cout
<<
"Ny plassering: "
;
std
::
string
nyPlassering
=
lesData
(
MAXCHAR
,
false
)
;
getline
(
std
::
cin
,
plassering
)
;
this
->
setPlassering
(
nyPlassering
);
break
;
}
...
...
This diff is collapsed.
Click to expand it.
kategori.h
+
3
−
3
View file @
91e8426f
...
...
@@ -6,15 +6,15 @@
class
Kategori
{
private:
list
<
NyTing
*>
gNyTing
;
std
::
list
<
NyTing
*>
gNyTing
;
public:
Kategori
();
void
lesData
();
void
skrivData
();
void
endreData
();
slettKategori
();
void
slettKategori
();
}
}
;
#endif
This diff is collapsed.
Click to expand it.
kunde.cpp
+
1
−
2
View file @
91e8426f
...
...
@@ -2,8 +2,7 @@
#include
<iostream>
#include
"LesData3.h"
Kunde
::
Kunde
(
int
kundeNr
,
std
::
string
navn
,
std
::
string
adresse
,
std
::
string
postSted
,
int
postNr
,
std
::
string
epost
,
int
tlf
)
:
KundeNr
(
kundeNr
),
navn
(
navn
),
adresse
(
adresse
),
postSted
(
postSted
),
postNr
(
postNr
),
epost
(
epost
),
tlf
(
tlf
),
tingKjopt
(
0
),
tingSolgt
(
0
),
TingTilSalgs
(
0
)
{}
Kunde
::
Kunde
(
std
::
ifstream
&
inn
,
int
tall
)
{}
void
Kunde
::
nullstill
()
{
tingKjopt
=
0
;
...
...
This diff is collapsed.
Click to expand it.
kunde.h
+
1
−
1
View file @
91e8426f
...
...
@@ -28,7 +28,7 @@ public:
void
endreData
();
void
skrivTilFil
(
std
::
ofstream
&
ut
);
int
getKundeNr
();
slettKunde
();
bool
slettKunde
();
};
#endif
This diff is collapsed.
Click to expand it.
kunder.cpp
+
12
−
2
View file @
91e8426f
#include
"kunder.h"
#include
"kunde.h"
#include
<iostream>
// cout, cin
#include
<fstream>
// ifstream, ofstream
#include
<string>
// String
#include
<list>
// List
#include
<algorithm>
#include
"LesData3.h"
// Verktøykasse for innlesing
Kunder
::
Kunder
()
:
sisteNr
(
0
)
{}
using
namespace
std
;
extern
Kunder
gKundebase
;
Kunder
::
Kunder
(){}
void
Kunder
::
leggTilKunde
(
Kunde
*
kunde
)
{
auto
it
=
kunder
.
begin
();
...
...
@@ -35,7 +45,7 @@ void Kunder :: skrivUtEnKunde(int kundeNr){
bool
funn
=
false
;
for
(
i
=
0
;
i
<
kunder
.
size
();
i
++
){
for
(
int
i
=
0
;
i
<
kunder
.
size
();
i
++
){
if
(
kunder
[
i
]
->
getKundeNr
()
==
kundeNr
){
funn
=
true
;
...
...
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