-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaybay.cpp
More file actions
45 lines (42 loc) · 908 Bytes
/
maybay.cpp
File metadata and controls
45 lines (42 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "maybay.h"
#include <string>
#include <fstream>
#include <sstream>
void maybay::setmb(string sohieu, string loai, int cho, int sl){
this->sohieumb = sohieu;
this->loaimaybay = loai;
this->socho = cho; // choox
this->soluot_bay = sl;
}
void maybay::setSohieu(string sohieu){
this->sohieumb = sohieu;
}
void maybay::setLoai(string loai){
this->loaimaybay = loai;
}
void maybay::setSoCho(string cho){
stringstream str2num(cho);
int x = 0;
str2num >> x;
this->socho = x;
}
void maybay::setSl_mb(string sl){
stringstream str2num(sl);
int x = 0;
str2num >> x;
this->soluot_bay = x;
}
string maybay::getSohieu(){
return sohieumb;
}
string maybay::getLoai(){
return loaimaybay;
}
int maybay::getSoCho(){
return socho;
}
int maybay::getsl_mb(){
return soluot_bay;
}
maybay::~maybay(){
}