• Unit 5: Advanced Concepts

    In this unit, we will first explore the concept of generic programming, and how you can harness the power of templates to make classes and functions more reusable and adaptable to your personal needs. Then, we will explore ways to add content to our program by reading from files and then storing the data by writing to output files. Finally, we will explore the use of exceptions in C++. Exceptions allow us to anticipate problems that might occur in code and handle this problems through the use of exceptions, telling the program specifically how it is to behave when these problems occur.

    Completing this unit should take you approximately 8 hours.

    • 5.1: Writing Class and Function Templates

    • 5.2: Inputting and Outputting with Files

    • 5.3: Exception Handling

    • Unit 5 Exercises