Day 8#

Overview#

Today we will learn a lot more about C++ functions and function passing conventions. We will also touch on namespaces and exceptions.

Lessons#

Lesson Title

Objectives

Questions

Function Calling and Arguments

  • Learn about C++ functions and argument passing

  • Learn about the const keyword

  • Learn about returning multiple things from a function

  • How do functions differ in C++ and Python?

  • How are arguments passed in C++?

  • How can we protect variables (and function arguments) from changing?

Namespaces

  • Learn about grouping functions and objects with namespaces

  • How can we group functions together under a single collection?

  • How can I prevent collisions with functions having the same name in other libraries?

Exceptions

  • Learn about throwing and catching exception in C++

  • How do we handle major errors in C++?

  • How do exceptions differ from python?

Discussions and Assignments#