Now I know my if and Else statement is messed up though the result is correct.
Basically i would like some help in defining functions
for the above program
I Would Like To write functions which i have never done before such as
such as (Get Customers) which encompasses the File input of 'customer.dat' would something such as void get customers(cust[length].accnum+cust[length].amount+cust[length].chartype) work to show the file input and create a function i am sure this is completely wrong.
A similar Function For (Get Transactions) similar to above Really i want to maybe use a void function () to store it as i am passing the values to the individual elements of the trans[length] array
A Print Balance (float) function to return the cout of Balance ie the Cout statements though maybe a duplicated function for the initial balance
Then I would Like a check Transaction type which would contain the if/else loop structure.
I am mainly looking for advice and pointers though as i have not done this at all before.
Preferibly using the code supplied to make testing of concepts easier.