#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <list>
void displayResults |
( |
list< AccountPtr > & |
accntList | ) |
|
displayResults - display the accounts found in the Account link list
- Parameters
-
accntList | list<AccountPtr>& the list of account |
- Returns
- void
getAccntNo - return the account number to create account
- Returns
- unsigned the account number entered by the user
getAccounts - inputs accounts from the keyboard
This function reads input from the keyboard. For every S or C entered, the function creates a new Savings or Checking account object and adds it to the account list. An X terminates the entry. Any other input is assumed to be a deposit (numbers greater than 0) or a withdrawal (numbers less than 0).
- Parameters
-
accList | list<AccountPtr>& the list of account objects created by getAccounts() |
- Returns
- void
int main |
( |
int |
argcs, |
|
|
char * |
pArgs[] |
|
) |
| |
process(Account) - input the data for an account
- Parameters
-
pAccount | AccountPtr an account to process |
- Returns
- void