This project implements a simple bank account management system using the structures CompteBancaire
and Banque
. It includes various functionalities such as adding, deleting, and updating accounts, as well as handling transactions.
Functionality:
Adds a new account to the Banque
structure.
- The
compteur
field keeps track of the total number of accounts. - The counter must not exceed the limit defined in the variable
MAX_ACCOUNTS
.
Functionality:
Deletes an account from the bank.
- Searches for the account to be deleted using a loop.
- Overwrites the target account with the next account in the list.
- Reduces the size of the array by 1.
Functionality:
Updates the balance of an account.
- Searches for the target account.
- Adds the desired amount to the account balance.
Structures:
Transaction
: Stores details of individual transactions, including the amount and their status.TransactionList
: Maintains a list of transactions that are either pending or in progress.
Functionality:
Withdraws money from an account.
- Searches for the account using its account number.
- Checks if the balance is sufficient before processing the withdrawal.
- If the account is not found, an error message is displayed.
- If the balance is insufficient, a warning is shown.
Functionality:
Deposits money into an account.
- Adds the specified amount to the account balance.
- Does not require balance verification.