It's UWAweek 19

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 1168 articles.
Currently 21 other people reading this forum.


SVG not supported

Login to reply

👍?
helpful
4:40pm Mon 28th Aug, Minn MKM.

Graceful exits

Should we include graceful exits in the program? For example I have this code snippet in my program for when the file does not exist.

''' if (file == NULL) { perror("Error opening file!!"); exit(EXIT_FAILURE); } '''

The question is are we required to take these sorts of errors into account? Errors like non existent files, or wrong file types? Or can we assume that these sorts of problems wouldn't exist.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy