/CPP

Lecture notes, projects and other materials for Course 'CS205 C/C++ Program Design' at Southern University of Science and Technology.

Primary LanguageC++

Programming in C/C++ Efficiently

Course 'CS205 C/C++ Program Design' in 2021 Fall at Southern University of Science and Technology. The lecture videos can be found at https://www.bilibili.com/video/BV1Vf4y1P7pq

  1. The first example
  2. Different programming languages
  3. Compile and link
  4. Preprocessor and macros
  5. Simple input and output
  1. Integer numbers
  2. More integer types
  3. Floating point numbers
  4. Arithmetic operators
  1. if statement
  2. Conditions
  3. while loop
  4. for loop
  5. goto switch
  1. Arrays
  2. Strings
  3. Structures unions and enumerations
  4. typedef
  1. Pointers
  2. Pointers and arrays
  3. Allocate memory in C style
  4. Allocate memory in C++ style
  1. Functions
  2. Function parameters
  3. References
  4. return statement
  5. inline function
  1. Default arguments
  2. Function overloading
  3. Function templates
  4. Function pointers and references
  5. Recursive functions
  1. C and C++ with ARM
  2. Speedup your program
  3. An example with SIMD and OpenMP
  4. Avoid memory copy in OpenCV
  1. Classes and objects
  2. Constructors and destructors
  3. this pointer
  4. const and static members
  1. Operators in OpenCV
  2. Operator overloading
  3. Friend functions
  4. User defined type conversion
  5. Increment and decrement operators
  1. Some default operations
  2. An example with dynamic memory
  3. Solution1: Hard copy
  4. Solution2: Soft copy
  5. Smart pointers
  1. Improve your source code
  2. Derived class
  3. Access control
  4. Virtual functions
  5. Inheritance and dynamic memory allocation
  6. Examples in opencv
  1. Class template
  2. Template non-type parameters
  3. Class template specialization
  4. std classes
  1. Standard output stream and standard error stream
  2. assert
  3. Exceptions
  4. More about exceptions
  5. nothrow
  1. Friend classes
  2. Nested types
  3. RTTI and type cast operators

Reference

  1. Mr. Yitong Wang's repo for the course in Fall 2020. https://github.com/YeeTone/CS205-2020Fall
  2. Mr. Zheng Dong's repo for the course in Fall 2021. https://github.com/XDZhelheim/CS205_C_CPP_Lab