摘要: Hi, this is the fifth blog of rust, I will talk about implementing OOP in rust. I have learned some some other OOP languages like Java, and I really l 阅读全文
posted @ 2024-04-11 08:01 skywxp 阅读(20) 评论(0) 推荐(0)
摘要: Hi, everyone, this is my fourth blog post for rust, in this blog post, I will talk about something about trait in rust. This blog might be more likely 阅读全文
posted @ 2024-04-07 07:59 skywxp 阅读(64) 评论(0) 推荐(0)
摘要: Hi, this is my third blog for unsafe in rust, I feel that unsafe is a superpower in rust and I am interested in it, this blog is to have some brief in 阅读全文
posted @ 2024-04-02 15:12 skywxp 阅读(58) 评论(0) 推荐(0)
摘要: Hi everyone, this is my second blog for the smart pointer in rust. We have already taken use of the Box<> in the previous exercises(Like the Christmas 阅读全文
posted @ 2024-03-27 09:23 skywxp 阅读(38) 评论(0) 推荐(0)
摘要: Hi, this is a blog comparing the reference in rust and java. I really love java and I have spend some time learning the framework like spring and othe 阅读全文
posted @ 2024-03-06 09:52 skywxp 阅读(43) 评论(0) 推荐(0)
摘要: 在jquery中有如下结构:div(button span button) (1)我们可以通过伪类选择器 : firstchild,: lastchild来快速选择这两个button。button:firstchild其实际就是带序号的选定了一个button。原理上还是递进性的选择元素。就是 A B 阅读全文
posted @ 2023-02-28 15:55 skywxp 阅读(26) 评论(0) 推荐(0)
摘要: 1.二叉树的三种非递归 void PreorderWithOutRecursion(BiTree b){ BiTNode* p; SqStack st; InitStack(st); p = b; while(!StackEmpty(st)||p!=NULL){ while(p!=NULL){ pr 阅读全文
posted @ 2022-10-23 09:26 skywxp 阅读(559) 评论(0) 推荐(0)
摘要: 二分搜索的非递归写法很直白,就是区间问题,维护三个变量从而达到搜索的目的,代码如下。 int Binary_Search(SSTable L, ElemType key) { int low = 0, high = L.TableLen - 1,mid;//low和high是下标大小。 while 阅读全文
posted @ 2022-07-26 22:27 skywxp 阅读(54) 评论(0) 推荐(0)
摘要: 这里我们来看看链表实现。 typedef int ElementType; typedef struct LNode { ElementType data; struct LNode* next; }LNode,*LinkedList; 首先是这个结构体,和顺序表类似。ElementType是之前的 阅读全文
posted @ 2022-05-04 17:03 skywxp 阅读(208) 评论(0) 推荐(0)
摘要: 顺序表作为数据结构的入门,是需要我们掌握的,下面我们就来实现一下静态顺序表。为了方便,这里使用到了c++的引用。 1.首先是这个结构体 typedef struct { ElemType data[MaxSize];//静态顺序表 int length; }SqList; 结构体里面有两个元素,一个 阅读全文
posted @ 2022-04-12 20:52 skywxp 阅读(194) 评论(0) 推荐(0)