This repository was archived by the owner on Apr 23, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 20 files changed +767
-43
lines changed
Expand file tree Collapse file tree 20 files changed +767
-43
lines changed Original file line number Diff line number Diff line change 1+ #include " Aluno.hpp"
2+
3+ Aluno::Aluno ()
4+ {
5+ this ->matriculaInstituicao = " " ;
6+ this ->codigo = -1 ;
7+ this ->CPF = " " ;
8+ this ->RG = " " ;
9+ this ->endereco = " " ;
10+ this ->telefone = " " ;
11+ this ->email = " " ;
12+ this ->nome = " " ;
13+ this ->qtdAlunos ++;
14+ }
15+
16+ Aluno::~Aluno ()
17+ {
18+ cout << " Aluno CANCELADO" < endl;
19+ }
20+
21+ void matricular (Turma t);
22+
23+ string Aluno::getMatriculaInstituicao ()
24+ {
25+ return this .matriculaInstituicao ;
26+ }
27+
28+ void Aluno::setMatriculaInstituicao (string matriculaInstituicao)
29+ {
30+ this .matriculaInstituicao = matriculaInstituicao;
31+ }
32+
33+ int Aluno::getCodigo ()
34+ {
35+ return this .codigo ;
36+ }
37+
38+ void Aluno::setCodigo (int codigo)
39+ {
40+ this .codigo = codigo;
41+ }
42+
43+ string Aluno::getCPF ()
44+ {
45+ return this .CPF ;
46+ }
47+
48+ void Aluno::setCPF (string CPF)
49+ {
50+ this .CPF = CPF;
51+ }
52+
53+ string Aluno::getRG ()
54+ {
55+ return this .RG ;
56+ }
57+
58+ void Aluno::setRG (string RG)
59+ {
60+ this .RG = RG;
61+ }
62+
63+ string Aluno::getEndereco ()
64+ {
65+ return this .endereco ;
66+ }
67+
68+ void Aluno::setEndereco (string endereco)
69+ {
70+ this .endereco = endereco;
71+ }
72+
73+ string Aluno::getTelefone ()
74+ {
75+ return this .telefone ;
76+ }
77+
78+ void Aluno::setTelefone (string telefone)
79+ {
80+ this .telefone = telefone;
81+ }
82+
83+ string Aluno::getEmail ()
84+ {
85+ return this .email ;
86+ }
87+
88+ void Aluno::setEmail (string email)
89+ {
90+ this .email = email;
91+ }
92+
93+ string Aluno::getNome ()
94+ {
95+ return this .nome ;
96+ }
97+
98+ void Aluno::setNome (string nome)
99+ {
100+ this .nome = nome;
101+ }
102+
103+ int Aluno::getQtdAlunos ()
104+ {
105+ return this .qtdAlunos ;
106+ }
107+
108+ void Aluno::setQtdAlunos (int qtdAlunos)
109+ {
110+ this .qtdAlunos = qtdAlunos;
111+ }
Original file line number Diff line number Diff line change 1+ class Aluno
2+ {
3+ private:
4+ string matriculaInstituicao;
5+ int codigo;
6+ string CPF;
7+ string RG;
8+ string endereco;
9+ string telefone;
10+ string email;
11+ string nome;
12+ static int qtdAlunos;
13+
14+ public:
15+ Aluno ();
16+ ~Aluno ();
17+
18+ string Aluno::getMatriculaInstituicao ();
19+ void Aluno::setMatriculaInstituicao (string matriculaInstituicao);
20+ int Aluno::getCodigo ();
21+ void Aluno::setCodigo (int codigo);
22+ string Aluno::getCPF ();
23+ void Aluno::setCPF (string CPF);
24+ string Aluno::getRG ();
25+ void Aluno::setRG (string RG);
26+ string Aluno::getEndereco ();
27+ void Aluno::setEndereco (string endereco);
28+ string Aluno::getTelefone ();
29+ void Aluno::setTelefone (string telefone);
30+ string Aluno::getEmail ();
31+ void Aluno::setEmail (string email);
32+ string Aluno::getNome ();
33+ void Aluno::setNome (string nome);
34+ int Aluno::getQtdAlunos ();
35+ void Aluno::setQtdAlunos (int qtdAlunos);
36+
37+ void matricular (Turma t);
38+ };
Original file line number Diff line number Diff line change 33
44using namespace std ;
55
6-
7- Professor::Professor (/* args */ )
8- {
9- }
10-
11- Professor::~Professor ()
12- {
13- }
14-
156class Matricula
167{
178private:
@@ -110,37 +101,6 @@ Serie::~Serie()
110101{
111102}
112103
113- class Aluno
114- {
115- private:
116- string matriculaInstituicao;
117- int codigo;
118- string CPF;
119- string RG;
120- string endereco;
121- string telefone;
122- string email;
123- string nome;
124- static int qtdAlunos;
125- public:
126-
127- Aluno (/* args */ );
128- ~Aluno ();
129-
130- void matricular (Turma t)
131- {
132-
133- }
134- };
135-
136- Aluno::Aluno (/* args */ )
137- {
138- }
139-
140- Aluno::~Aluno ()
141- {
142- }
143-
144104int main ()
145105{
146106 return 0 ;
Original file line number Diff line number Diff line change 1+ #include < string>
2+ #include < ctime>
3+ #include < iostream>
4+ #include " Professor.hpp"
5+
6+ Professor::Professor ()
7+ {
8+ this ->
9+ }
10+
11+ Professor::~Professor ()
12+ {
13+
14+ }
15+
16+
17+ Date getDataAdmissao ()
18+ {
19+ return this .dataAdmissao ;
20+ }
21+
22+ void setDataAdmissao (Date dataAdmissao)
23+ {
24+ this .dataAdmissao = dataAdmissao;
25+ }
26+
27+ Date getDataDemissao ()
28+ {
29+ return this .dataDemissao ;
30+ }
31+
32+ void setDataDemissao (Date dataDemissao)
33+ {
34+ this .dataDemissao = dataDemissao;
35+ }
36+
37+ string getCPF ()
38+ {
39+ return this .CPF ;
40+ }
41+
42+ void setCPF (string CPF)
43+ {
44+ this .CPF = CPF;
45+ }
46+
47+ string getRG ()
48+ {
49+ return this .RG ;
50+ }
51+
52+ void setRG (string RG)
53+ {
54+ this .RG = RG;
55+ }
56+
57+ string getEndereco ()
58+ {
59+ return this .endereco ;
60+ }
61+
62+ void setEndereco (string endereco)
63+ {
64+ this .endereco = endereco;
65+ }
66+
67+ string getTelefone ()
68+ {
69+ return this .telefone ;
70+ }
71+
72+ void setTelefone (string telefone)
73+ {
74+ this .telefone = telefone;
75+ }
76+
77+ string getEmail ()
78+ {
79+ return this .email ;
80+ }
81+
82+ void setEmail (string email)
83+ {
84+ this .email = email;
85+ }
86+
87+ string getNome ()
88+ {
89+ return this .nome ;
90+ }
91+
92+ void setNome (string nome)
93+ {
94+ this .nome = nome;
95+ }
96+
97+ int getQtdProfessores ()
98+ {
99+ return this .qtdProfessores ;
100+ }
101+
102+ void setQtdProfessores (int qtdProfessores)
103+ {
104+ this .qtdProfessores = qtdProfessores;
105+ }
106+
107+
108+
109+ Professor::Professor ();
110+ Professor::~Professor ();
Original file line number Diff line number Diff line change 1+ #ifndef __PROFESSOR__
2+ #define __PROFESSOR__
3+ #include < string>
4+ #include < ctime>
5+ #include < iostream>
6+ #include " Professor.hpp"
7+
18class Professor
29{
310private:
4- // Date dataAdmissao;
5- // Date dataDemissao;
11+ Date dataAdmissao;
12+ Date dataDemissao;
613 string CPF;
714 string RG;
815 string endereco;
916 string telefone;
1017 string email;
1118 string nome;
1219 static int qtdProfessores;
20+
1321public:
14- Professor (/* args */ );
22+ Date Professor::getDataAdmissao ();
23+ void Professor::setDataAdmissao (Date dataAdmissao);
24+ Date Professor::getDataDemissao ();
25+ void Professor::setDataDemissao (Date dataDemissao);
26+ string Professor::getCPF ();
27+ void Professor::setCPF (string CPF);
28+ string Professor::getRG ();
29+ void Professor::setRG (string RG);
30+ string Professor::getEndereco ();
31+ void Professor::setEndereco (string endereco);
32+ string Professor::getTelefone ();
33+ void Professor::setTelefone (string telefone);
34+ string Professor::getEmail ();
35+ void Professor::setEmail (string email);
36+ string Professor::getNome ();
37+ void Professor::setNome (string nome);
38+ int Professor::getQtdProfessores ();
39+ void Professor::setQtdProfessores (int qtdProfessores);
40+
41+ Professor ()
1542 ~Professor ();
1643};
Original file line number Diff line number Diff line change 1+ #include < iostream>
2+ #include " Serie.hpp"
3+
4+ using namespace std ;
5+
6+ Serie::Serie ()
7+ {
8+ this .nome = " " ;
9+ tihs.codigo = -1 ;
10+ }
11+
12+ Serie::~Serie ()
13+ {
14+ cout << " serie LITERALMENTE destruida" << endl;
15+ }
16+
17+ public string Serie::getNome ()
18+ {
19+ return this .nome ;
20+ }
21+
22+ public void Serie::setNome (string nome)
23+ {
24+ this .nome = nome;
25+ }
26+
27+ public int Serie::getCodigo ()
28+ {
29+ return this .codigo ;
30+ }
31+
32+ public void Serie::setCodigo (int codigo)
33+ {
34+ this .codigo = codigo;
35+ }
You can’t perform that action at this time.
0 commit comments