Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
C++ Exception Handling with Examples (Basic to Advanced)
Rating: 4.4 out of 5(77 ratings)
3,875 students

C++ Exception Handling with Examples (Basic to Advanced)

Learn how to implement Exception Handling in C++, covering every basic topic in detail with the help of C++ Examples.
Created byAnuj Kumar
Last updated 6/2015
English

What you'll learn

  • Understand why Exception Handling was required
  • 9 downloadable C++ examples covered in the course
  • How Exception handling works / mechanism.
  • Use try, catch and throw and implement your own programs.
  • Make your own program covering all topics from Basics to Advanced

Course content

5 sections16 lectures1h 50m total length
  • Course Introduction3:41

    A Brief Introduction of the course, about its contents, Prerequisites of the course and knowing whether the course is right for you or not.

  • Installing Dev C++ or Code Blocks7:00

    In this lecture we will be installing Dev C++ for Windows and Code Blocks for Linux and Mac Users. Off course you can use any other compiler of your own. I will be using Dev C++ throughout the course.

    Download Dev C++ here - http://www.bloodshed.net/dev/devcpp.html

    Download Code Blocks for Mac and Linux Users - http://www.codeblocks.org/downloads/26

    Let me know if any of the link is not working.

  • Why there was a need for Exception Handling4:41

    In this lecture you will learn "why there is a need for Exception Handling." You can download the C++ file made in the lecture from the "Downloadable Resources" section.

    Well we need to handle certain exceptions, For example - 10/0 is infinite or not defined. But computer doesn't know this and it generates an error as a result we are not able to run our programs. So we need certain mechanism called "Exception Handling" to handle such thing. But more on that later in the next lecture.

  • How it works?

Requirements

  • You should already be familiar with the basic syntax of C++ - functions, control structure, operators and variables.

Description

Update: From today (1st November 2022) this course is now free for all. After almost 3 years of launching this course I had finally decided to make this as free due to some reasons. I would like to express my gratitude & appreciation for all the students who enrolled in the paid version of this course. 

Want to learn the most typical and important topic in any programming language. In this course you will learn Exception Handling in C++ covering all the basic to advanced topics with the help of great examples along the way.

I will be using Dev C++ as a compiler but you can use any compiler of your choice. Before starting the course you should have at least basic understanding of C++ syntax - operators, functions, control structure.

The course contains 5 section having total of 11 lectures - 2 hours of video content. Apart from that there are 9 C++ files included in the "Downloadable Resource" section for better understanding of its concepts. Also various MCQ's / Quizzes for better understanding of your concepts.

Here's a list of topics covered in the course -

  1. Why there was a need for exception handling.

  2. Basics of Exception Handling.

  3. How Exception handling works / mechanism.

  4. Use of try, catch and throw.

  5. Function that generates exception.

  6. Multiple catch statements.

  7. How to Catch all the exceptions using (...)

  8. Nested exception handling

  9. Restricting / Specifying throw restriction

  10. Re throwing an Exception

      And much more along the way...

This topic is highly recommended on the perspective of Interviews for companies  or Examination.

Who this course is for:

  • The course is suitable for beginners in C++ programming language - functions, operators, variables, control structure.
  • Please do not take the course if you have no prior experience in any programming language.