Skip to content
Snippets Groups Projects
Commit 05de110c authored by Abdulsamad Sheikh's avatar Abdulsamad Sheikh :cat2:
Browse files

Small bugfixes

parent 8a5cbbbe
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ void BruktTing::endreData() {
switch(valg) {
case 1: {
std::cout << "Ny beskrivelse: ";
std::string nyBeskrivelse = lesData(MAXCHAR, false);
getline(std::cin, beskrivelse) ;
this->setBeskrivelse(nyBeskrivelse);
break;
}
......
......@@ -4,7 +4,7 @@
#include <map>
#include <string>
#include <fstream>
#include "Kategori.h"
#include "kategori.h"
class Kategorier {
private:
......
#include "kunde.h"
#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) {}
......@@ -11,7 +12,7 @@ void Kunde::nullstill() {
}
void Kunde::skrivDetaljer() {
Kunde::skrivData()
Kunde::skrivData() ;
std::cout << "Adresse: " << adresse << ", " << postNr << postSted << std::endl;
std::cout << "E-post: " << epost << std::endl;
std::cout << "Antall ting kjopt: " << tingKjopt << std::endl;
......
......@@ -27,7 +27,7 @@ public:
void lesData();
void endreData();
void skrivTilFil(std::ofstream & ut);
int getKundrNr();
int getKundeNr();
slettKunde();
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment