try-catch

I have been having problems in comprehending how to use them. i know that they are used to handle exceptions but i don't know how to use them can someone please explain.
closed account (Dy7SLyTq)
im going to post this, because i dont know either but would like to learn so this wood make it easy to follow ;)
Have you checked out the tutorials on this site and learncpp? They basically do what they sound like. If an exception occurred (try it to check), throw it , then catch it.

http://www.cplusplus.com/doc/tutorial/exceptions/
http://www.learncpp.com/ -> start with chapter 15

First chapter 15 -> http://www.learncpp.com/cpp-tutorial/151-the-need-for-exceptions/


i checked the one on this site but not the other one. so i will get back to you
checked it and it helped thanks
Topic archived. No new replies allowed.