2022年2月2日

摘要: 今天在编写二叉树的代码的时候,发现一个奇怪的现象,代码如下: bool CreateBiTree(BiTree *T) { char ch; printf("Node:"); scanf("%c", &ch); if (ch == '#') { *T = NULL; return false; } 阅读全文
posted @ 2022-02-02 17:52 睡键盘的猫 阅读(148) 评论(0) 推荐(0) 编辑
 

2022年1月14日

摘要: 单链表的定义: typedef struct Node { int data; struct Node* next; }Node,*LinkList; 单链表的初始化(带头节点): bool InitList(LinkList* L) { *L = (LinkList)malloc(sizeof(N 阅读全文
posted @ 2022-01-14 20:25 睡键盘的猫 阅读(94) 评论(0) 推荐(0) 编辑
 

2022年1月5日

摘要: 原本我也是学习如何将正则表达式一步步化到DFA,搜索发现很多不是死板的定义,就是跨度太大,所以我决定用一道例题,看看它是如何转化的,本次以正则表达式:(a|b)*(aa|bb)(a|b)* 为例。 我看到和多人会介绍将正则表达式转化为NFA的规则,为了便于理解我也选择简单说一下,正则表达式转化为NF 阅读全文
posted @ 2022-01-05 14:40 睡键盘的猫 阅读(2476) 评论(0) 推荐(1) 编辑
 

2021年12月10日

摘要: In the previous part we have learned how to parse(recognize) and interpreter arithmetic expressions with any any numbers of plus or minus operators in 阅读全文
posted @ 2021-12-10 23:01 睡键盘的猫 阅读(54) 评论(0) 推荐(0) 编辑
 

2021年12月7日

摘要: 操作系统(Operating System)是配置在计算机硬件上的第一层软件,也是最基本的系统软件,他可以控制和管理计算机系统的硬件和软件资源,合理地组织和调度计算机的工作和资源的分配,并提供给用户和其他的应用软件一个方便的接口和环境,也可以理解为它提供给其他应用程序一个更简单,方便的计算机模型。 阅读全文
posted @ 2021-12-07 16:44 睡键盘的猫 阅读(459) 评论(0) 推荐(0) 编辑
 

2021年12月5日

摘要: Let's continue learning from the previous part.Graphically,the arithmetic expression can be represented with the following syntax diagram: A syntax di 阅读全文
posted @ 2021-12-05 15:58 睡键盘的猫 阅读(139) 评论(0) 推荐(0) 编辑
 

2021年12月4日

摘要: “If you learn only methods,you will be tied to your methods.But if you learn principles, you can devise your own methods.” Ralph Waldo Emerson On taht 阅读全文
posted @ 2021-12-04 23:00 睡键盘的猫 阅读(54) 评论(0) 推荐(0) 编辑
 
摘要: 今天突然想要记录一下自己的学习过程,一方面是为了以后更好的回顾,另一方面则是在记录的过程中希望看到自己的成长。因为我是根据一篇博客进行学习的,所以接下来可能会使用很多英语。 什么是编译器(compiler)或解释器(interpreter)呢?它们的功能是什么?它们之间又有什么曲别呢? The go 阅读全文
posted @ 2021-12-04 20:33 睡键盘的猫 阅读(62) 评论(0) 推荐(0) 编辑