-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (22 loc) · 685 Bytes
/
Copy pathmain.cpp
File metadata and controls
27 lines (22 loc) · 685 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
#include <iostream>
#include <locale.h>
#include "ExtensoesGerais/ExtensoesGerais.h"
int main(){
setlocale(LC_ALL, "Portuguese");
Banco bancoJS("Liedson", "1234", "abc", "lied", "bancoJS");
UsuaryInterface us(&bancoJS);
us.ClienteOuFuncionario();
do {
try{us.loopFuncionalidades();
us.printDespedida();
} catch (BancoExcecao &e){
std::cout << "\nErro! " << e.what() << '\n';
} catch (ContaExcecao &e) {
std::cout << "\nErro! " << e.what() << '\n';
} catch (std::exception &e){
std::cout << "\nErro inesperado.\n";
}
}
while (us.getEscolhas() != 9);
return 0;
}