-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
37 lines (29 loc) · 696 Bytes
/
main.cpp
File metadata and controls
37 lines (29 loc) · 696 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
#include <iostream>
#include <string>
#include <exception>
#include "include/Interfaces.hpp"
#include "include/Modulos.hpp"
using namespace std;
int main()
{
// cout << "Hello World" << endl;
IFControle* cntrIFControle = new MFControle();
IFConta* dep1 = new MFConta();
IFDados* dep2 = new MFDados();
IFAutenticacao* dep3 = new MFAutenticacao();
cntrIFControle->setCntrIFConta(dep1);
cntrIFControle->setCntrIFDados(dep2);
cntrIFControle->setCntrIFAutenticacao(dep3);
try
{
cntrIFControle->run();
}
catch (const runtime_error &exp)
{
cout << &exp;
}
delete dep1;
delete dep2;
delete dep3;
return 0;
}