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

Tag: return values

27.1 — The need for exceptions

54

In the previous lesson on handling errors, we talked about ways to use assert(), std::cerr, and exit() to handle errors. However, we deferred 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 common …

Alex October 4, 2008, 1:26 pm PDT May 23, 2024
Continue reading"27.1 — The need for exceptions"

©2024 Learn C++ Privacy Policy