try, catch, throw 예외처리시 필요한 용법들이지요
FILE* openFile; try { openFile = fopen(\"file.txt\", \"r\"); if (openFile == NULL) { throw openFile; } ... } catch(FILE* err) { printf(\"Unhandled Exception : %d\", err); }
char* 타입도 에러메시지로 전송할 수 있구나. 오오 좋네
try, catch, throw 예외처리시 필요한 용법들이지요
FILE* openFile; try { openFile = fopen(\"file.txt\", \"r\"); if (openFile == NULL) { throw openFile; } ... } catch(FILE* err) { printf(\"Unhandled Exception : %d\", err); }
char* 타입도 에러메시지로 전송할 수 있구나. 오오 좋네