+ 2
what is "try throw catch" and were i can find it in sololearn?
thanx in advanc
3 Respostas
+ 13
try/catch is a structure that checks for possible exceptions/errors in a section of code (inside the try structure), and handles them (inside the catch structure(s)) so the program doesn't crash. The throw keyword raises an exception to catch.
For C++, the lesson on them is in the Templates, Exceptions, and Files section. You'll have to do all the prior C++ lessons before you can get to it, though.
+ 5
tnx guys :-)
+ 3
handling exceptions lesson.