2 Replies - 802 Views - Last Post: 29 December 2009 - 04:18 PM Rate Topic: -----

#1 maybnxtseasn   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 87
  • Joined: 04-April 09

exception handling?

Posted 29 December 2009 - 02:42 PM

how is exception handling with the try throw catch any different from using an if statement to check if the user input is valid or not?
Is This A Good Question/Topic? 0
  • +

Replies To: exception handling?

#2 NickDMax   User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2255
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: exception handling?

Posted 29 December 2009 - 03:05 PM

Well I would say start by reading up on exceptions on the C++ FAQ.

Personally, other than keeping the logic a little clearer, I have never really known the answer myself... lets see what turns up.
Was This Post Helpful? 0
  • +
  • -

#3 maybnxtseasn   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 87
  • Joined: 04-April 09

Re: exception handling?

Posted 29 December 2009 - 04:18 PM

View PostNickDMax, on 29 Dec, 2009 - 02:05 PM, said:

Well I would say start by reading up on exceptions on the C++ FAQ.

Personally, other than keeping the logic a little clearer, I have never really known the answer myself... lets see what turns up.


same im new to programming i just felt i was missing an important concept...if u think about it...they might have also added it to keep your programming more organized so u always dont see a bunch of if's if that is what you were refering to
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1