Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shiqiyu/cpp
Lecture notes, projects and other materials for Course 'CS205 C/C++ Program Design' at Southern University of Science and Technology.
https://github.com/shiqiyu/cpp
c cpp lecture-notes
Last synced: 3 days ago
JSON representation
Lecture notes, projects and other materials for Course 'CS205 C/C++ Program Design' at Southern University of Science and Technology.
- Host: GitHub
- URL: https://github.com/shiqiyu/cpp
- Owner: ShiqiYu
- Created: 2021-08-24T03:52:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-04T06:26:55.000Z (7 months ago)
- Last Synced: 2024-12-12T22:05:23.686Z (10 days ago)
- Topics: c, cpp, lecture-notes
- Language: C++
- Homepage:
- Size: 185 MB
- Stars: 2,121
- Watchers: 26
- Forks: 354
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
## Why Should You Take This Course?
> C and C++ have a big overlap in syntax. The standards of C and C++ are also very long, and still in evolution to accept new features. This course will not cover all aspects of C and C++. It is impossible. The course focuses on the most important and unique parts of C and C++. Pointers and memory management will be described and explained almost through all chapters. They make many beginners even experienced developers crazy for bugs difficult to find. But they are important for computing efficiently, and also are the unique advantages of C and C++. Some people hate them, and some love them. We can say pointers and memory management make C and C++ unique to most other advanced programming languages.
>
>The course is designed for undergraduate students who have learnt Java or Python. If the students taking this course have some background knowledge of programming, such as knowing a little Java or Python, it will be helpful. If not, it is also not a problem.## [Chapter 1: Getting Started](week01/README.md)
1. The first example
1. Different programming languages
1. Compile and link
1. Different errors
1. Preprocessor and macros
1. Simple input and output
1. Command line arguments
1. Exercises* [Lecture notes](week01/Lecture01.pptx)
* [Lab notes](week01/Lab01.pptx)
* [Examples](week01/examples)## [Chapter 2: Data Types and Arithmetic Operators](week02/README.md)
1. Integer numbers
1. Different integer types
1. Floating-point numbers
1. Constant numbers and constant variables
1. Arithmetic operators
1. Special notes* [Lecture notes](week02/Lecture02.pptx)
* [Lab notes](week02/Lab02.pptx)
* [Examples](week02/examples)## [Chapter 3: Branching and Looping Statements](week03/README.md)
1. `if` statement
1. `? :` operator
1. Conditional expressions
1. `while` loop
1. `for` loop
1. `goto` statement
1. `switch` statement* [Lecture notes](week03/Lecture03.pptx)
* [Lab notes](week03/Lab03.pptx)
* [Examples](week03/examples)## [Chapter 4: Data Structures](week04/README.md)
1. Arrays
1. Strings
1. Structures unions and enumerations
1. `typedef`* [Lecture notes](week04/Lecture04.pptx)
* [Lab notes](week04/Lab04.pptx)
* [Examples](week04/examples)## [Chapter 5: Memory and Pointer](week05/README.md)
1. Pointers
1. Pointers and arrays
1. Allocate memory in C style
1. Allocate memory in C++ style* [Lecture notes](week05/Lecture05.pptx)
* [Lab notes](week05/Lab05.pptx)
* [Examples](week05/examples)## [Chapter 6: Basics of Functions](week06/README.md)
1. Functions
1. Function parameters
1. References
1. `return` statement
1. `inline` function* [Lecture notes](week06/Lecture06.pptx)
* [Lab notes](week06/Lab06.pptx)
* [Examples](week06/examples)## [Chapter 7: Advances in Functions](week07/README.md)
1. Default arguments
1. Function overloading
1. Function templates
1. Function pointers and references
1. Recursive functions* [Lecture notes](week07/Lecture07.pptx)
* [Lab notes](week07/Lab07.pptx)
* [Examples](week07/examples)## [Chapter 8: Speedup Your Program](week08/README.md)
1. C and C++ with ARM
1. Speedup your program
1. An example with SIMD and OpenMP
1. Avoid memory copy in OpenCV* [Lecture notes](week08/Lecture08.pptx)
* [Lab notes](week08/Lab08.pptx)
* [Examples](week08/examples)## [Chapter 9: Basics of Classes](week09/README.md)
1. Classes and objects
1. Constructors and destructors
1. `this` pointer
1. `const` and `static` members* [Lecture notes](week09/Lecture09.pptx)
* [Lab notes](week09/Lab09.pptx)
* [Examples](week09/examples)## [Chapter 10: Advances in Classes](week10/README.md)
1. Operators in OpenCV
1. Operator overloading
1. Friend functions
1. User defined type conversion
1. Increment and decrement operators* [Lecture notes](week10/Lecture10.pptx)
* [Lab notes](week10/Lab10.pptx)
* [Examples](week10/examples)## [Chapter 11: Dynamic Memory Management in Classes](week11/README.md)
1. Some default operations
1. An example with dynamic memory
1. Solution1: Hard copy
1. Solution2: Soft copy
1. Smart pointers* [Lecture notes](week11/Lecture11.pptx)
* [Lab notes](week11/Lab11.pptx)
* [Examples](week11/examples)## [Chapter 12: Class Inheritance](week12/README.md)
1. Improve your source code
1. Derived class
1. Access control
1. Virtual functions
1. Inheritance and dynamic memory allocation
1. Examples in opencv* [Lecture notes](week12/Lecture12.pptx)
* [Lab notes](week12/Lab12.pptx)
* [Examples](week12/examples)## [Chapter 13: Class Templates and std Library](week13/README.md)
1. Class template
1. Template non-type parameters
1. Class template specialization
1. `std` classes* [Lecture notes](week13/Lecture13.pptx)
* [Lab notes](week13/Lab13.pptx)
* [Examples](week13/examples)## [Chapter 14: Error Handling](week14/README.md)
1. Standard output stream and standard error stream
1. `assert`
1. Exceptions
1. More about exceptions
1. `nothrow`* [Lecture notes](week14/Lecture14.pptx)
* [Lab notes](week14/Lab14.pptx)
* [Examples](week14/examples)## [Chapter 15: Nested Classes and RTTI](week15/README.md)
1. Friend classes
1. Nested types
1. RTTI and type cast operators* [Lecture notes](week15/Lecture15.pptx)
* [Lab notes](week15/Lab15.pptx)
* [Examples](week15/examples)## 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
3. Mr. Wenqian Yan's repo for the course in Fall 2022. https://github.com/YanWQ-monad/SUSTech_CS205_Projects