
CS100
计算机编程
CS100 计算机编程是计算机科学与技术专业的核心基础课程,采用“先 C 后 C++”的教学结构。课程覆盖数据类型、控制结构、函数、指针、数组、结构体、内存管理、面向对象编程、模板、异常处理和 STL 标准库等内容,并通过在线评测作业和 recitation 环节强化实践能力。
- 授课教师
- 张芯韵
CS100 Lectures 与 Recitations · 2026 Fall
课程概览
课程信息
- 上课时间
- 每周两讲:周二 13:00–14:40、周四 13:00–14:40,教学中心 302。
- 习题课(Recitation)
- 每周一 18:00–19:40,信息学院 1D-107,共约 15 次:编程工具介绍、知识扩展、作业/小测/考试讲解与编程示例,录像上传 Bilibili。
课程平台
考核方式
教材与参考
课程内容遵循 C17 与 C++17 标准(基于 cppreference 与标准委员会文件)。推荐教材《C++ Primer》第 5 版(注意不是《C++ Primer Plus》)、《Effective C++》等,电子版仅限课程学习使用。
学术诚信提醒 严禁抄袭,处罚严厉。AI 工具(GPT、Copilot 等)产出的内容视同互联网资料:两人提交相同代码即构成抄袭,「用了同一个 ChatGPT 账号」「Copilot 生成了相同代码」等理由均不被接受。
课程安排
| 周次 | 日期 | 正课 Lecture | 习题课 Recitation | 作业与 DDL |
|---|---|---|---|---|
| Pre 课前准备 本周 | 线上 | R0 编程环境配置 蒋烨 | | |
| W1 9/14 – 9/20 本周 | 9/14 周一 | 不安排习题课 | | |
| 9/15 周二 | | |||
| 9/17 周四 | L2 Variables I and Arithmetic Types | | ||
| W2 9/21 – 9/27 本周 | 9/21 周一 | Intro + R1 课程介绍与Linux基础 李超凡、李宇轩 | | |
| 9/22 周二 | L3 Operators and Control Flow I | | ||
| 9/24 周四 | L4 Operators and Control Flow II, Functions | | ||
| W3 9/28 – 10/4 本周 | 9/28 周一 | R2 Linux基础(下) 李宇轩 | | |
| 9/29 周二 | L5 Variables II, Pointers and Arrays I | | ||
| 10/1 周四 | | |||
| W4 10/5 – 10/11 本周 | 10/5–6 周一–二 | | ||
| 10/8 周四 | L6 Pointers and Arrays II | | ||
| W5 10/12 – 10/18 本周 | 10/12 周一 | R3 Git基础 李宇轩 | | |
| 10/13 周二 | L7 Pointers and Arrays III, Dynamic Memory, Strings | HW1 截止 | ||
| 10/15 周四 | L8 struct, Recursion | | ||
| W6 10/19 – 10/25 本周 | 10/19 周一 | R4 GDB、Sanitizer与C语言代码调试 刘文杰 | | |
| 10/20 周二 | | |||
| 10/22 周四 | L10 C Summary | HW2 截止 | ||
| W7 10/26 – 11/1 本周 | 10/26 周一 | R5 C语言内存管理 李超凡 | | |
| 10/27 周二 | L11 C++ Introduction, Strings | | ||
| 10/29 周四 | L12 References, std::vector | | ||
| W8 11/2 – 11/8 本周 | 11/2 周一 | R6 从C到C++ 蒋烨 | | |
| 11/3 周二 | L13 "C" in C++ | HW3 截止 | ||
| 11/5 周四 | L14 Class Basics I | | ||
| W9 11/9 – 11/15 本周 | 11/9 周一 | R7 C++ Class基础 孟祥琨 | | |
| 11/10 周二 | L15 Constructors, Destructors, Copy Control | | ||
| 11/12 周四 | L16 Class Basics II | | ||
| 11/15 周日 | HW4 截止 | |||
| W10 11/16 – 11/22 本周 | 11/16 周一 | Check HW4 Check | | |
| 11/17 周二 | L17 Rvalue References and Move | | ||
| 11/19 周四 | L18 Smart Pointers | | ||
| W11 11/23 – 11/29 本周 | 11/23 周一 | R8 拷贝、移动与智能指针 蒋烨 | | |
| 11/24 周二 | L19 Operator Overloading | | ||
| 11/26 周四 | 小测 Quiz 2 | | ||
| 11/29 周日 | HW5 截止 | |||
| W12 11/30 – 12/6 本周 | 11/30 周一 | Quiz 2 讲评 | | |
| 12/1 周二 | L20 Iterators and Algorithms | | ||
| 12/3 周四 | L21 Inheritance and Polymorphism I | | ||
| W13 12/7 – 12/13 本周 | 12/7 周一 | Midterm 复习 | | |
| 12/8 周二 | 考试 期中考试 | | ||
| 12/10 周四 | L22 Inheritance and Polymorphism II | | ||
| 12/13 周日 | HW6 截止 HW7 发布 待发布 | |||
| W14 12/14 – 12/20 本周 | 12/14 周一 | Makefile 详解与多文件编译 | | |
| 12/15 周二 | L23 More on STL: Sequence Containers and Associative Containers 待发布 | | ||
| 12/17 周四 | L24 Exception Handling and Exception Safety 待发布 | | ||
| W15 12/21 – 12/27 本周 | 12/21 周一 | 不安排习题课 | | |
| 12/22 周二 | L25 Templates I 待发布 | | ||
| 12/24 周四 | L26 Templates II 待发布 | | ||
| W16 12/28 – 1/3 本周 | 12/28 周一 | 不安排习题课 | | |
| 12/29 周二 | L27 Other Facilities in the Standard Library 待发布 | | ||
| 12/31 周四 | L28 Compile-time Computations and Metaprogramming 待发布 | | ||
| 1/3 周日 | HW7 截止 | |||
| W17 1/4 – 1/10 本周 | 1/4 周一 | Check HW7 Check | | |
| 1/5–8 周二–五 | 期末考试周 本课程无期末考试 | | ||
Teaching Team







课程概览
课程信息
- 上课时间
- 每周两讲:周二 13:00–14:40、周四 13:00–14:40,教学中心 302。
- 习题课(Recitation)
- 每周一次,信息学院 1D-108:编程工具介绍、知识扩展、作业/小测/考试讲解与编程示例,录像上传 Bilibili。
课程平台
- Online Judge
- 作业唯一提交渠道,每题取最后一次提交的分数;使用课程提供的账号信息登录。
学术诚信提醒 严禁抄袭,处罚严厉。AI 工具(GPT、Copilot 等)产出的内容视同互联网资料:两人提交相同代码即构成抄袭,「用了同一个 ChatGPT 账号」「Copilot 生成了相同代码」等理由均不被接受。
Recitation
- R0
Environment Setup
开发环境配置、VS Code、编译工具链和幻灯片工具使用。
- R1
Introduction to CS100 and C/C++
课程介绍、C/C++ 基础和入门材料。
- R2
Data Types, Literals & Operators
数据类型、字面量、运算符和表示方法。
- R3
Control Flow and Preprocessing
控制流、预处理、多文件和变量解释。
- R4
Pointers & Arrays
指针、数组、二维动态内存和 undefined behavior。
-
Midterm Review
期中复习。
- R5
IO and Compound Data Structures
IO 和复合数据结构。
- R6
Hello, C++!
- Bonus
Git
- R7
References, Value Categories, new/delete
引用、左右值、new 和 delete。
- R8
class Basics
class 初步。
- R9
Dynarray Example
Class Example: 以 Dynarray 为例。
- R10
Copy and Move
拷贝、移动和拷贝控制成员。
- R11
Operator Overloading
多返回值操作和运算符重载。
- R12
Iterators and Algorithms
迭代器、范围和标准算法。
- R13
Makefile
Lectures
- L0
Lecture 0
- L1
Lecture 1
- L2
Lecture 2
- L3
Lecture 3
- L4
Lecture 4
- L5
Lecture 5
- L6
Lecture 6
- L7
Lecture 7
- L8
Lecture 8
- L9
Lecture 9
- L10
Lecture 10
- L11
Lecture 11
- L12
Lecture 12
- L13
Lecture 13
- L14
Lecture 14
- L15
Lecture 15
- L16
Lecture 16
- L17
Lecture 17
- L18
Lecture 18
- L19
Lecture 19
- L20
Lecture 20
- L21
Lecture 21
- L22
Lecture 22
- L23
Lecture 23
- L24
Lecture 24
- L25
Lecture 25
- L26
Lecture 26
- L27
Lecture 27
- L28
Lecture 28
期中试卷
-
2025 Fall 期中试卷(空卷)
-
2025 Fall 期中试卷(含答案)
课程概览
课程信息
- 上课时间
- 每周两讲:周二 13:00–14:40、周四 13:00–14:40,教学中心 302。
- 习题课(Recitation)
- 每周一次,信息学院 1D-108:编程工具介绍、知识扩展、作业/小测/考试讲解与编程示例。
课程平台
- Online Judge
- 作业唯一提交渠道,每题取最后一次提交的分数;使用课程提供的账号信息登录。
学术诚信提醒 严禁抄袭,处罚严厉。AI 工具(GPT、Copilot 等)产出的内容视同互联网资料:两人提交相同代码即构成抄袭,「用了同一个 ChatGPT 账号」「Copilot 生成了相同代码」等理由均不被接受。
Recitation
- R1
Recitation 1
- R2
Recitation 2
- R3
Recitation 3
- Bonus
Git
- R4
Recitation 4
- R5
Recitation 5
- R6
Recitation 6
- R7
Recitation 7
- R8
Recitation 8
- R9
Recitation 9
- R10
Recitation 10
- R11
Recitation 11
- R12
Recitation 12
- R13
Recitation 13
- R14
Recitation 14
期中试卷
-
2024 Fall 期中试卷(空卷)
-
2024 Fall 期中试卷(含答案)