I want to put in Validation to only allow the account number to be 4 digits ONLY
Program ALLOWS less than 4 digits. I am not able to find what the problem is. Have read and looked everywhere to find an answer but no success. Can someone clue me in please. Also I have an ERROR id returned 1 exit status and don't have a clue how to fix that. Checked the last line several times and not able to get rid of the error.
Thank you for your response I appreciate your attention and time.
I have added return 0 on to line 125 several times and actually cannot believe it still returns an error messase id returned 1 exit status. Any idea what I could be missing?
Take a look:
Look at the two message lines at the bottom of your screenshot.
The message states you're getting a "permission denied" error trying to open an output file. This is what is causing the -1 return and is unrelated to not having a return 0 at the end of the program (although that is still recommended).
I could not have deduced that from the code you posted, since there is no output file in the code you posted.