+ 1
what is use of catch and throw in c++
2 ответов
+ 1
I've been taught to use it for error handling. You put 'try' before a block of code and then 'catch' with the error or condition at the end of the code you want to "test".
+ 1
Those keywords are for exception handling function , if you don't catch the exception your program simply crashes