摘要: C++实现带头结点的静态链表 #ifndef STATICLIST_H #define STATICLIST_H #include <cassert> #include <iostream> using namespace std; ///带头结点的静态链表 const int defaultSiz 阅读全文
posted @ 2020-10-02 13:15 ananasaa 阅读(139) 评论(0) 推荐(0) 编辑
摘要: (Ⅰ) 顺序表实现相加 ①C方法(很简单的对应相加。。 #include <iostream> #include <stdlib.h> using namespace std; typedef struct PolyNode *Poly; struct PolyNode { int a; int n 阅读全文
posted @ 2020-10-02 09:37 ananasaa 阅读(241) 评论(0) 推荐(0) 编辑
摘要: ①C++实现循环链表(带头节点) #include <iostream> #include <cassert> //文件操作 #include <fstream> //对文件进行操作 ///有头结点的循环链表 using namespace std; //枚举:第一个成员默认为0,后面依次+1 en 阅读全文
posted @ 2020-10-02 09:13 ananasaa 阅读(140) 评论(0) 推荐(0) 编辑
摘要: ①不带头结点的单链表的实现(类模板) 1 #include <iostream> 2 #include <cstdlib> 3 #include <ctime> 4 ///无头结点 5 using namespace std; 6 //typedef int T; 7 8 template <cla 阅读全文
posted @ 2020-09-29 08:42 ananasaa 阅读(137) 评论(0) 推荐(0) 编辑
摘要: C++代码实现顺序表 1 #include <iostream> 2 #include <cassert> 3 #include <cstdlib> 4 #include <ctime> 5 using namespace std; 6 typedef int T; 7 const int defa 阅读全文
posted @ 2020-09-26 10:24 ananasaa 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-26 10:07 ananasaa 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 1.随机数 #include<iostream> #include <ctime> //产生time的 #include<cstdlib> //产生俩随机函数的 using namespace std; int main() { const int N = 5; const int M = 24; 阅读全文
posted @ 2020-09-26 09:07 ananasaa 阅读(107) 评论(0) 推荐(0) 编辑
摘要: PART 1-时空的基本属性 ## 力学分类 ①运动学:描述物体的运动情况 ②动力学:研究物体运动时,与周围其他物体的相互作用&&产生的影响 阅读全文
posted @ 2020-09-26 08:55 ananasaa 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 167 阅读全文
posted @ 2020-09-26 08:53 ananasaa 阅读(112) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; //ab7c d234bk jalf 34 78k3j4 a 59jfd45 int stoi(string str, int *start = NULL) //string to integer { bool bFi 阅读全文
posted @ 2020-05-16 16:37 ananasaa 阅读(144) 评论(0) 推荐(0) 编辑