Adding the start of ex02
This commit is contained in:
parent
8a95c7d3cb
commit
26f7e39833
6 changed files with 358 additions and 0 deletions
34
cpp00/ex02/Account.cpp
Normal file
34
cpp00/ex02/Account.cpp
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Account.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/23 16:11:46 by rparodi #+# #+# */
|
||||
/* Updated: 2024/10/23 16:52:20 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Account.hpp"
|
||||
|
||||
Account::Account()
|
||||
{
|
||||
_nbAccounts = 0;
|
||||
_totalAmount = 0;
|
||||
_totalNbDeposits = 0;
|
||||
_totalNbWithdrawals = 0;
|
||||
}
|
||||
|
||||
static int Account::getNbAccounts()
|
||||
{
|
||||
t.size();
|
||||
}
|
||||
|
||||
static int Account::getTotalAmount();
|
||||
|
||||
static int Account::getNbDeposits();
|
||||
|
||||
static int Account::getNbWithdrawals();
|
||||
|
||||
static void Account::displayAccountsInfos();
|
||||
Loading…
Add table
Add a link
Reference in a new issue