-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBank.h
More file actions
33 lines (28 loc) · 652 Bytes
/
Copy pathBank.h
File metadata and controls
33 lines (28 loc) · 652 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
/** Arquivo Bank.h. Trabalho final EEL670 2022.2
* Aluno: Luis Guilherme Neri Ferreira */
#ifndef BANK_H
#define BANK_H
#include <iostream>
#include <map>
#include "Database.h"
#include "Client.h"
using namespace std;
class Bank
{
private:
MYSQL* connection;
Database db;
public:
Bank();
~Bank();
void createAccount(Client);
bool login(int, const char*);
void checkBalance(int);
void deposit(int, float);
void withdraw(int, float);
void pix(int, int, float);
void loan(int, float);
void payLoan(int);
void simulateMonth();
};
#endif