ouverture ex02
This commit is contained in:
46
d00/ex02/Account.cpp
Normal file
46
d00/ex02/Account.cpp
Normal file
@@ -0,0 +1,46 @@
|
||||
#include "Account.hpp"
|
||||
#include <iostream>
|
||||
|
||||
Account::Account( int initial_deposit ) {
|
||||
std::cout << "hello" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
Account::~Account( void ) {
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
typedef Account t;
|
||||
|
||||
static int getNbAccounts( void );
|
||||
static int getTotalAmount( void );
|
||||
static int getNbDeposits( void );
|
||||
static int getNbWithdrawals( void );
|
||||
static void displayAccountsInfos( void );
|
||||
|
||||
Account( int initial_deposit );
|
||||
~Account( void );
|
||||
|
||||
void makeDeposit( int deposit );
|
||||
bool makeWithdrawal( int withdrawal );
|
||||
int checkAmount( void ) const;
|
||||
void displayStatus( void ) const;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
static int _nbAccounts;
|
||||
static int _totalAmount;
|
||||
static int _totalNbDeposits;
|
||||
static int _totalNbWithdrawals;
|
||||
|
||||
static void _displayTimestamp( void );
|
||||
|
||||
int _accountIndex;
|
||||
int _amount;
|
||||
int _nbDeposits;
|
||||
int _nbWithdrawals;
|
||||
|
||||
Account( void );
|
||||
*/
|
||||
Reference in New Issue
Block a user