Skip to main content

CS107: C++ Programming

Page path
  • Home /
  • Courses /
  • Course Catalog /
  • Computer Science /
  • CS107: C++ Programming /
  • Unit 4: Advanced Concepts
Back to course 'CS107: C++ Programming'
  • Unit 4: Advanced Concepts

    This unit begins with a review of function and class templates, which make programs adaptable. We will then learn how to manipulate files. C++ provides the classes that can perform output and input of characters to/from files. 

    This unit will also cover namespaces, which group entities like classes, objects, and functions under a name. We will finish the unit with exception handling and preprocessor directives. Exceptions handle exceptional circumstances in our programs by transferring control to special functions called handlers. At the end of the unit, we will discuss the preprocessor directives, lines included in the code of a program that are not program statements but directives for the preprocessor.

    Completing this unit should take you approximately 14 hours.

    • Unit 4 Learning Outcomes Page
    • 4.1: Templates

    • 4.2: Input/Output with Files

    • 4.3: Namespaces

    • 4.4: Recursion

    • 4.5: Exceptions

    • 4.6: Preprocessor Directives

    • Unit 4 Exercises

    • End of Unit Assessment

      •  Unit 4 Assessment Quiz

Navigation

Art History
Biology
Business Administration
Chemistry
Communication
Economics
English
History
Mathematics

Creative Commons License
© Saylor Academy 2010-2018 except as otherwise noted. Excluding course final exams, content authored by Saylor Academy is available under a Creative Commons Attribution 3.0 Unported license. Third-party materials are the copyright of their respective owners and shared under various licenses. See www.saylor.org/open/licensinginformation for detailed licensing information.

Saylor Academy and Saylor.org® are trade names of the Constitution Foundation, a 501(c)(3) organization through which our educational activities are conducted.

Terms of Use | Privacy Policy