TechSpot

Help with C++

By tw0rld
Nov 2, 2008
  1. I am currently teaching myself C++ Programming. I am currently at the stage of learning Exception handling. The problem is whenever I compile the code then run the executable everything works fine except for the part about handling exception.
    For instance the program is coded to get user input and/or response. What is suppose to happen is that if a user enters an invalid entry an error message should appear, but instead of this happening the program crashes. I am thinking that it is a problem with the coding. I have attached two samples.
     

    Attached Files:

Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...