Fork me on GitHub
摘要: C 语言速览 阅读全文
posted @ 2022-10-10 17:46 小a的软件思考 阅读(17) 评论(0) 推荐(0) 编辑
摘要: Lab 0,环境搭建 实验描述 参考答案 Lab 1,Utilities 实验描述 参考答案 xargs 实现 Lab 2,system calls 6S081 qemu-gdb debug调试 实验描述 参考答案 Lab 3,Page tables 实验描述 参考答案 参考答案2 A kernel 阅读全文
posted @ 2022-10-09 15:05 小a的软件思考 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 10.4.1 C 语言中,间接赋值是指针存在的最大意义 #include "iostream" using namespace std; struct Teacher { char name[64]; int age; }; // 函数参数为 二级指针,做输出 int getTeacher(Teac 阅读全文
posted @ 2022-09-16 17:41 小a的软件思考 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 15. 模板(Templates) Reuse source code generic programming use types as parameters in class or function definitions Template functions Template classes 1 阅读全文
posted @ 2022-06-17 14:34 小a的软件思考 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 14. 运算符重载 14.1 Overloaded operator Just a function with an operator name! Use the operator keyword as a prefix to name operator *(...) Can be a member 阅读全文
posted @ 2022-06-17 11:31 小a的软件思考 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 13. 静态对象 13.1 Static in C++ Two basic meanings: Static storage allocated once at a fixed address Visibility of a name internal linkage Don't use stati 阅读全文
posted @ 2022-06-16 18:03 小a的软件思考 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 12 拷贝构造 Create a new object from an existing one For example, when calling a function // Currency as pass-by-value argument void func(Currency p) { co 阅读全文
posted @ 2022-06-16 16:26 小a的软件思考 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 11. 多态 11.1 Conversions Public Inheritance should imply substitution If B isa A, you can use a B anywhere an A can be used. 示例: #include <iostream> us 阅读全文
posted @ 2022-06-16 14:11 小a的软件思考 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 10. 引用 References are a new data type in C++; Local or global variables For ordinary variables, the initial value is required In parameter lists and m 阅读全文
posted @ 2022-06-16 09:25 小a的软件思考 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 9. Const declares a variable to have a constant value Constants are variables Observe(遵守) scoping rules Declared with "const" type modifier 9.1 Compil 阅读全文
posted @ 2022-06-13 11:07 小a的软件思考 阅读(26) 评论(0) 推荐(0) 编辑