-
Notifications
You must be signed in to change notification settings - Fork 0
/
MSala.cpp
73 lines (58 loc) · 1002 Bytes
/
MSala.cpp
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* MSala.cpp
*
* Created on: 2/3/2016
* Author: LuisA
*/
#include "MSala.h"
int MSala::getCapacsala() const {
return capacsala;
}
void MSala::setCapacsala(int capacsala) {
this->capacsala = capacsala;
}
int MSala::getTipofuncion() const {
return tipofuncion;
}
void MSala::setTipofuncion(int tipofuncion) {
this->tipofuncion = tipofuncion;
}
int MSala::getTiposala() const {
return tiposala;
}
void MSala::setTiposala(int tiposala) {
this->tiposala = tiposala;
}
MSala::MSala() {
// TODO Auto-generated constructor stub
cantentradas=0;
}
string MSala::DeterminartipoS(int i) {
switch(i)
{
case 1:
return "Premiun"; break;
case 2:
return "Normal"; break;
default:
return 0;
}
}
int MSala::getCantentradas() const
{
return cantentradas;
}
void MSala::ActualizarEntrada(){
cantentradas++;
}
string MSala::Determinartipof(int i) {
switch(i)
{
case 1:
return "Matine"; break;
case 2:
return "Vespertina"; break;
default:
return 0;
}
}