Hi, could someone tell me why this function in my header is not returning the
balance = depAmount + balance
back to Main?
Um, it's not returning it, because you haven't told it to return it! You've defined the function to be of type void, which means it doesn't return anything.
EDIT: And nowhere in the code you've posted do I see any definition for the variables balance or depAmount used in addToBalance(). What are they? Global variables? Data members?