Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Design-Biblioteca
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Nico Ramos
Design-Biblioteca
Commits
4f1c9a1e
Commit
4f1c9a1e
authored
7 months ago
by
mgy20
Browse files
Options
Downloads
Patches
Plain Diff
Adicionado alguns casos de teste
parent
7fa9dccb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.cpp
+25
-4
25 additions, 4 deletions
main.cpp
with
25 additions
and
4 deletions
main.cpp
+
25
−
4
View file @
4f1c9a1e
...
@@ -3,6 +3,9 @@
...
@@ -3,6 +3,9 @@
#include
"./sources/Biblioteca.hpp"
#include
"./sources/Biblioteca.hpp"
#include
"./sources/Livro.hpp"
#include
"./sources/Livro.hpp"
#include
"./sources/Periodico.hpp"
#include
"./sources/Periodico.hpp"
#include
"./sources/DescricaoObra.hpp"
#include
"./sources/Obra.hpp"
#include
"./sources/ControladorObras.hpp"
using
namespace
std
;
using
namespace
std
;
...
@@ -27,13 +30,31 @@ int main(){
...
@@ -27,13 +30,31 @@ int main(){
// break;
// break;
// }
// }
//}
//}
Periodico
p
(
"Revista de Ciência"
,
2023
,
5
,
3
);
Livro
l
(
"C++ Programming"
,
2022
,
"John Doe"
,
"Tech Books"
);
std
::
cout
<<
"Detalhes do Periódico:
\n
"
;
cout
<<
"==> Instanciando uma Descricao de Obra: "
<<
endl
;
DescricaoObra
desc
(
"Mochileiro das galáxias"
,
1999
);
desc
.
mostrarDetalhes
();
cout
<<
endl
;
cout
<<
"==> Instanciando um Periodico: "
<<
endl
;
Periodico
p
(
"Revista de Ciência"
,
2023
,
5
,
3
);
p
.
mostrarDetalhes
();
p
.
mostrarDetalhes
();
std
::
cout
<<
"
\n
Detalhes do Livro:
\n
"
;
cout
<<
endl
;
cout
<<
"==> Instanciando um Livro: "
<<
endl
;
Livro
l
(
"C++ Programming"
,
2022
,
"John Doe"
,
"Tech Books"
);
l
.
mostrarDetalhes
();
l
.
mostrarDetalhes
();
cout
<<
endl
;
cout
<<
"==> Instanciando uma Obra: "
<<
endl
;
int
disponiveis
=
10
,
total
=
14
;
Obra
ob
(
desc
,
disponiveis
,
total
);
ob
.
mostrarDetalhes
();
cout
<<
endl
;
cout
<<
"==> Instanciando o Controlador de Obras: "
<<
endl
;
ControladorObras
obras
;
...
...
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