C++ Exceptions Handling

所在平台: Udemy

课程主页: https://www.udemy.com/course/cpp-in-detail-exceptions/

课程评论:没有评论

第一个写评论        关注课程

课程简介

《C++ 异常处理》课程总结: 本课程旨在系统讲解 C++ 语言中的异常处理机制,以帮助学习者应对软件开发中不可避免的错误和异常情况。课程内容涵盖 C++11 至 C++17 标准,并注重理论、语法与最佳实践的结合。 **课程核心内容包括:** * **异常的抛出与捕获:** 深入学习如何抛出和捕获异常,了解其局限性。 * **栈展开 (Stack Unwinding):** 理解栈展开的过程及其工作原理。 * **构造函数与析构函数中的异常:** 探讨在构造函数和析构函数中处理异常的注意事项和潜在陷阱。 * **异常的重抛与嵌套:** 学习如何重抛异常,以及处理嵌套异常的情况。 * **自定义与标准异常:** 掌握创建自定义异常类以及使用标准异常库。 * **动态异常规范与 `noexcept`:** 讲解动态异常规范的概念,以及 `noexcept` 说明符和 `noexcept` 运算符的使用。 * **C++ 核心指南:** 介绍 C++ 核心指南中关于错误处理的建议。 * **异常安全:** 学习如何构建具有异常安全保证的代码,这是编写健壮 C++ 程序的重要概念。 **课程形式:** * **理论讲解与代码示例:** 提供详细的讲义和实际代码演示。 * **PDF 讲义:** 提供每节课的 PDF 摘要,方便查阅和复习。 * **C++ 核心指南参考:** 链接至相关的 C++ 核心指南内容。 * **知识测试:** 通过小测验巩固和检验学习成果。 **先修要求:** 本课程不适合 C++ 初学者。要求学习者具备至少 C++ 基础技能,能够理解中等复杂度的 C++ 代码示例。 **学习目标:** 学完本课程后,学习者将能够熟练运用 C++ 异常处理机制,编写更健壮、更可靠的 C++ 程序。

课程评论(0条)

课程详情

While writing and running software, sooner or later exceptions or some other form of errors are unavoidable, whether expected or not, resulting from issues in our code or user actions, etc. Hence, we must be prepared for exceptions / errors and know how to handle them properly (whether gracefully or failing fast) to recover from or at least not exacerbate problems in our programs, including those written in languages like C++.So, if you've just learned the basics of C++ and haven't dived into exceptions yet or worked with C++ for a while but need to brush up on exceptions, then this course is for you. It's about exceptions handling in C++, including theory, syntax and best practices. The course covers C++ standards 11-17.By the end of this course you will learnThrowing and catching exceptions and their limitations;Stack unwinding;Pitfalls when throwing in constructors and destructors;Re-throwing and nested exceptions;User-defined and standard exceptions;Dynamic exceptions specification;Noexcept specifier and noexcept operator;Recommendations on error handling from C++ Core Guidelines.Moreover, and probably most importantly, you will learn how to reason about exception safety of your code and exception safety guarantees, a concept that will help you write robust code in C++ and other similar languages.So what exactly is covered in the course?Lectures with code examples and explanations;Summaries in PDF files from each lecture for those who prefer reading and to be able to quickly to back to specific topics and recap;References to relevant C++ Core Guidelines about error handling;Quizzes with questions to check your knowledge.What is expected from you?Please note that this course is not for complete beginners. At least basic C++ skills are required. And you should be able to read and understand C++ code examples of low to medium complexity and size that we cover in lectures.So, does that sound like this course is for you? If yes, without further to do, enroll and I will see you in the course.The images in visual examples are from website pixabay and the audio in videos is from website bensound.

课程标签

0人关注该课程

主题相关的课程