• Navigate
    • 20.2 — Basic exception handling
    • Table of contents
    • 19.x — Chapter 19 comprehensive quiz
  • Site Index
  • Latest Changes
  • About
    • Site FAQ
    • Leave feedback
    • Report an issue
    • Contact / Support
  •  
  • Search
Learn C++
Learn C++
Skill up with our free tutorials
Skip to content
  • Navigate
    • 20.2 — Basic exception handling
    • Table of contents
    • 19.x — Chapter 19 comprehensive quiz
  • Site Index
  • Latest Changes
  • About
    • Site FAQ
    • Leave feedback
    • Report an issue
    • Contact / Support
  •  
  • Search
Tag: return values

Tag: return values

20.1 — The need for exceptions

35

In the previous lesson on handling errors, we talked about ways to use assert(), cerr(), and exit() to handle errors. However, we punted on one further topic that we will now cover: exceptions. When return codes fail When writing reusable code, error handling is a necessity. One of the most …

Alex October 4, 2008, 1:26 pm May 22, 2022
Continue reading"20.1 — The need for exceptions"

©2022 Learn C++