So, I have a few errors within my program, and I'm not quite sure how to fix them. On another note, how would I get data from one user-defined function and use it in another user-defined function, such as a printing one. I don't think I have it right in my code. Thanks.
Did you have any compilation errors or warnings? If so post them - it makes it easier.
LIne 22 does not provide any arguments expected by the function. The function doesn't need args because you get the info inside the function.
Also you have global variables - which is bad, at least put them into main.
The createAccount does need args, and you should use references to the variables accountNumber and deposit, so these values are changed in main, this way the function can be void.
And you won't have the conceptual error on lines 57 and 58. A function can only return 1 value, and when a return statement is encountered, control returns to just after where the function was called - so anything after a return statement in a block of statements is never reached. There is no return statement in the else starting at line 60, which is an error because the function must return a double.
Line 50: This should be a loop instead of if. Use a while loop with a bool variable to control when it exits the loop.