C++ 程序设计

C++ 程序设计

A course in C++ programming. The reference textbook is Stephen Prata, C++ Primer Plus, 6th edition, Posts & Telecom Press, 2020.

Course Information

Course Setup and Source Code

C and C++ Foundations

ChapterTopicFiles
01Getting Started with C++Slides
02Setting Out to C++Slides
03Dealing with DataSlides
04Compound TypesSlides
05Loops and Relational ExpressionsSlides
06Branching Statements and Logical OperatorsSlides
07Functions: C++’s Programming ModulesSlides
08Adventures in FunctionsSlides · Guide
09Memory Models and NamespacesSlides · Guide

Object-Oriented Programming and the Standard Library

ChapterTopicFiles
10Objects and ClassesSlides · Sample · Guide
11Working with ClassesSlides · Guide
12Classes and Dynamic Memory AllocationSlides · Guide
13Class InheritanceSlides · Guide
14Reusing Code in C++Slides · Guide
15Friends, Exceptions, and MoreSlides · Guide
16The string Class and the Standard Template LibrarySlides · Guide
17Input, Output, and FilesSlides · Guide

Projects and Demonstrations

Exercises and Online Judge

Development Environment and Style

Open the legacy course page

docs