try and catch block not executing in c++ program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vins15jadhav
    New Member
    • Feb 2016
    • 2

    try and catch block not executing in c++ program

    Sir, I want to execute C++ code for exception handling concept which include try and catch block. But when i am trying to execute that code in turbo c++ then it gives errors like 'undefined symbol try, Undefined symbol throw and catch'.
    So how to execute program? Is there any other compile required?
    Attached Files
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    This code works fine using Visual Studio 2013 BUT I have to enable C++ exceptions in my project properties. Check your compiler to see if there is a similar setting.

    Comment

    Working...