- Cary Chinese School
- Summer 2023
- Teacher: Dr. Owen Chen
This is an introductory C++ programming course offered by Cary Chinese School.
The course is designed for high school students who have some background knowledge of programming, such as knowing a little Java or Python. However, prior programming experience will be helpful but it is not required.
- The first example
- Different programming languages
- Compile and link
- Different errors
- Preprocessor and macros
- Simple input and output
- Command line arguments
- Exercises
- Integer numbers
- Different integer types
- Floating-point numbers
- Constant numbers and constant variables
- Arithmetic operators
- Special notes
if
statement? :
operator- Conditional expressions
while
loopfor
loopgoto
statementswitch
statement
- Arrays
- Strings
- Structures unions and enumerations
typedef
- Pointers
- Pointers and arrays
- Allocate memory in C style
- Allocate memory in C++ style
- Functions
- Function parameters
- References
return
statementinline
function
- Default arguments
- Function overloading
- Function templates
- Function pointers and references
- Recursive functions
- Classes and objects
- Constructors and destructors
this
pointerconst
andstatic
members
- Some default operations
- An example with dynamic memory
- Solution1: Hard copy
- Solution2: Soft copy
- Smart pointers
- Improve your source code
- Derived class
- Access control
- Virtual functions
- Inheritance and dynamic memory allocation
- Examples in opencv
- Class template
- Template non-type parameters
- Class template specialization
std
classes
- Course: C++ Primer
- Teacher: Dr. Owen Chen
- Cary Chinese School
- Summer 2023
- Github: https://github.com/owenjchen/cpp_primer