This program in not completed. I am creating a large program in order to calculate a company's weekly payroll. For now I am filling in the separate functions piece by piece before the rest of the program is completed.
Right now I am trying to use separate functions to call other functions. I need to ask the user for the file name and then open the file.
I am no longer getting any compiler errors however when I run the program all it displays is "Welcome."
So it's not actually calling the NameTheFile function and the OpenTheFile function. It just says "Welcome" and then closes down.
Line 77: you are not calling function here. You are declaring function with the name "NameTheFile" which takes no parameters and does not return anything.
Turn compiler warnings on, they should warn you about it.
To call function, you should write function name followed by function call operator, like that: