Thats more like a personal decision, if you need to say someway that the password was wrong you could make an exit(EXIT_FAILURE); (i think thats the name of the constant) , if the succed of the program dependes on a succesfull logon, you can consider that if it fails, the program fails too, cuz it couldent fullfill it's objective.
I hope i was in some way helfull for you, Dam.
|