chore: add

This commit is contained in:
FallenYing
2023-09-25 19:46:20 +08:00
parent 08c9571b1e
commit 7148b804dc
10 changed files with 20 additions and 21 deletions

View File

@@ -47,10 +47,10 @@ NJU-ICS-PA 南京大学计算机系统基础
## 我总觉得文章没写清楚
你毕业后进入公司/课题组, 不会再有讲义具体地告诉你应该做什么,总有一天你需要在脱离讲义的情况下完成任务。我们希望你现在就放弃"讲义和框架代码会把我应该做的一切细节清楚地告诉我"的幻想,为自己的成长负起责任:
你毕业后进入公司/课题组不会再有讲义具体地告诉你应该做什么,总有一天你需要在脱离讲义的情况下完成任务。我们希望你现在就放弃"讲义和框架代码会把我应该做的一切细节清楚地告诉我"的幻想,为自己的成长负起责任:
- 不知道在说什么,说明你对知识点的理解还不够清楚,这时候你应该去看书/看手册
- 不知道要做什么/怎么做, 说明你的系统观好是零碎的,理解不了系统中各个模块之间的联系,这时候你应该 RTFSC, 尽自己最大努力梳理并理解系统中的一切细节
- 不知道要做什么/怎么做说明你的系统观好是零碎的,理解不了系统中各个模块之间的联系,这时候你应该 RTFSC, 尽自己最大努力梳理并理解系统中的一切细节
- bug 调不出来,说明你不清楚程序正确的预期行为,你需要 RTFSC 理解程序应该如何运行; 此外也说明你不重视工具和方法的使用,你需要花时间去体验和总结它们
如果你发现自己有以上情况,你还是少抱怨,多吃苦吧。

View File

@@ -9,9 +9,9 @@
所以,为了表示这个物品,我们可以使用如下[结构](http://en.wikipedia.org/wiki/Struct_(C_programming_language))
- **description: ****对物品的描述**
- **tag: ****物品的类型**
- **location: ****物品所在****的位置。这是****对应****上一章中定义的****物品****位置****的指针。**
- **\*description: 对物品的描述**
- **\*tag: 物品的类型**
- **\*location: 物品所在的位置。这是对应上一章中定义的物品位置的指针。**
```c
struct object {
@@ -104,9 +104,9 @@ for (obj = objs; obj < objs + 5; obj++)
但是,对象通常具有同样有效的其他特征:
- **Locations通过****道路****连接(将在后面介绍)。如果一个物体无法通过一条通道到达,那么它就不是一个位置。就是这么简单。**
- **Items玩家唯一可以捡起的物品;****可以给他们整一个重量的属性**
- **Actors玩家唯一可以与之交谈交易战斗的对象;当然,前提是他们还活着!****可以加一个 HP 属性**
- **Locations通过道路连接(将在后面介绍)。如果一个物体无法通过一条通道到达,那么它就不是一个位置。就是这么简单。**
- **Items玩家唯一可以捡起的物品;可以给他们整一个重量的属性**
- **Actors玩家唯一可以与之交谈交易战斗的对象;当然,前提是他们还活着!可以加一个 HP 属性**
我们还要向数组中添加一个对象:玩家自己。
@@ -163,7 +163,7 @@ OBJECT objs[] = {
};
```
**注意:**要编译此模块,编译器*必须*支持 Constant folding。这排除了一些更原始的编译器如 [Z88DK](http://en.wikipedia.org/wiki/Z88DK)。
<strong>注意:</strong>要编译此模块,编译器*必须*支持 Constant folding。这排除了一些更原始的编译器如 [Z88DK](http://en.wikipedia.org/wiki/Z88DK)。
以下模块将帮助我们找到与指定名词匹配的对象。

View File

@@ -32,7 +32,7 @@
如果你可以在不参考下面内容的情况下就写出基本内容会有很大收获的
:::
## **parsexec.c**
## parsexec.c
```c
#include <stdbool.h>
@@ -91,7 +91,7 @@ bool parseAndExecute(char *input)
新命令由以下模块实现。
## **inventory.h**
## inventory.h
```c
extern void executeGet(const char *noun);
@@ -101,7 +101,7 @@ extern void executeGive(const char *noun);
extern void executeInventory(void);
```
## **inventory.c**
## inventory.c
```c
#include <stdio.h>

View File

@@ -78,7 +78,7 @@ StopIteration
**Analogy**: An iterable is like a book (one can flip through the pages) and an iterator for a book would be a bookmark (saves the position and can locate the next page). Calling `iter` on a book gives you a new bookmark independent of other bookmarks, but calling `iter` on a bookmark gives you the bookmark itself, without changing its position at all. Calling `next` on the bookmark moves it to the next page, but does not change the pages in the book. Calling `next` on the book wouldn't make sense semantically. We can also have multiple bookmarks, all independent of each other.
## 生成器:懒人迭代器!
## 生成器:懒人迭代器
```python
def test_iterator():

View File

@@ -1,6 +1,6 @@
# VMware 的安装与安装 Ubuntu22.04 系统
::: warning 💡
::: warning
一般与 wsl 安装二选一,因为都是虚拟系统,安装了 wsl 不用 VMware
文章撰写于 2022 年,可能其中的一些内容已过时。
@@ -36,7 +36,6 @@
这里推荐使用多线程下载器下载,比如 [IDM](../2.高效学习/2.2优雅的使用工具.md),如果直接用浏览器下载(线程少)可能会出现下载慢、下载失败的情况。
:::
下好回到 VMware
![](https://cdn.xyxsw.site/boxcnGHnjgZvtcBrm0XXitFl4Jg.png)

View File

@@ -100,7 +100,7 @@ cd Templates
可以完成目录的切换。注意在输入目录名时,`tab` 键可以提供联想。
#### ** 你感到键入困难吗?**
#### 你感到键入困难吗?
::: warning 💡 你可能会经常要在终端里输入类似于

2
package-lock.json generated
View File

@@ -1,5 +1,5 @@
{
"name": "hdu-cs-wiki",
"name": "hdu-cs-wiki_ly",
"lockfileVersion": 2,
"requires": true,
"packages": {