@@ -4,93 +4,123 @@ set_warnings("all")
4
4
set_kind (" binary" )
5
5
set_languages (" cxx17" )
6
6
7
+ -- 格式化输出
7
8
target (" exercise00" )
8
9
add_files (" 00_hello_world/main.cpp" )
9
10
11
+ -- 变量与运算符
10
12
target (" exercise01" )
11
13
add_files (" 01_variable&add/main.cpp" )
12
14
15
+ -- 函数、声明和定义
13
16
target (" exercise02" )
14
17
add_files (" 02_function/main.cpp" )
15
18
19
+ -- 形参实参
16
20
target (" exercise03" )
17
21
add_files (" 03_argument¶meter/main.cpp" )
18
22
23
+ -- static 关键字
19
24
target (" exercise04" )
20
25
add_files (" 04_static/main.cpp" )
21
26
27
+ -- constexpr 编译时常量和运算
22
28
target (" exercise05" )
23
29
add_files (" 05_constexpr/main.cpp" )
24
30
31
+ -- 循环
25
32
target (" exercise06" )
26
33
add_files (" 06_loop/main.cpp" )
27
34
35
+ -- 枚举/联合体
28
36
target (" exercise07" )
29
37
add_files (" 07_enum&union/main.cpp" )
30
38
39
+ -- “普通”类型
31
40
target (" exercise08" )
32
41
add_files (" 08_trivial/main.cpp" )
33
42
43
+ -- 方法
34
44
target (" exercise09" )
35
45
add_files (" 09_method/main.cpp" )
36
46
47
+ -- const 修饰方法
37
48
target (" exercise10" )
38
49
add_files (" 10_method_const/main.cpp" )
39
50
51
+ -- 类
40
52
target (" exercise11" )
41
53
add_files (" 11_class/main.cpp" )
42
54
55
+ -- 析构器
43
56
target (" exercise12" )
44
57
add_files (" 12_class_destruct/main.cpp" )
45
58
59
+ -- 复制构造函数
46
60
target (" exercise13" )
47
61
add_files (" 13_class_clone/main.cpp" )
48
62
63
+ -- 移动语义
49
64
target (" exercise14" )
50
65
add_files (" 14_class_move/main.cpp" )
51
66
67
+ -- 派生
52
68
target (" exercise15" )
53
69
add_files (" 15_class_derive/main.cpp" )
54
70
71
+ -- 虚函数
55
72
target (" exercise16" )
56
73
add_files (" 16_class_virtual/main.cpp" )
57
74
75
+ -- 虚析构函数
58
76
target (" exercise17" )
59
77
add_files (" 17_class_virtual_destruct/main.cpp" )
60
78
79
+ -- 函数模板
61
80
target (" exercise18" )
62
81
add_files (" 18_function_template/main.cpp" )
63
82
83
+ -- 习题:用于编译器的运行时类型
64
84
target (" exercise19" )
65
85
add_files (" 19_runtime_datatype/main.cpp" )
66
86
87
+ -- 类模板
67
88
target (" exercise20" )
68
89
add_files (" 20_class_template/main.cpp" )
69
90
91
+ -- 模板非类型实参
70
92
target (" exercise21" )
71
93
add_files (" 21_template_const/main.cpp" )
72
94
95
+ -- std::array
73
96
target (" exercise22" )
74
97
add_files (" 22_std_array/main.cpp" )
75
98
99
+ -- std::vector
76
100
target (" exercise23" )
77
101
add_files (" 23_std_vector/main.cpp" )
78
102
103
+ -- std::vector<bool>
79
104
target (" exercise24" )
80
105
add_files (" 24_std_vector_bool/main.cpp" )
81
106
107
+ -- 习题:步长计算
82
108
target (" exercise25" )
83
109
add_files (" 25_strides/main.cpp" )
84
110
111
+ -- std::string
85
112
target (" exercise26" )
86
113
add_files (" 26_std_string/main.cpp" )
87
114
115
+ -- std::map
88
116
target (" exercise27" )
89
117
add_files (" 27_std_map/main.cpp" )
90
118
119
+ -- std::transform
91
120
target (" exercise28" )
92
121
add_files (" 28_std_transform/main.cpp" )
93
122
123
+ -- std::accumulate
94
124
target (" exercise29" )
95
125
add_files (" 29_std_accumulate/main.cpp" )
96
126
0 commit comments