Henry-C
Henry-C
全部文章
分类
AEs(23)
css(1)
ctf(1)
docker(1)
git(1)
html(1)
latex(1)
linux(1)
python(2)
shell(1)
stl(2)
technology(2)
大数据(9)
数据结构(7)
未归档(1)
归档
标签
去牛客网
登录
/
注册
ch1762のblog
可惜时光之里山南水北,可惜你我之间人山人海。
全部文章
(共54篇)
C++ STL容器 常用API
vector 1.vector构造函数 vector <T> v;//采用模板实现类实现,默认构造函数 vector (v.begin(),v.end());//将v【begin(),end()】区间中的元素拷贝给本身 vector(n,elem);//构造函数将n个elem拷贝给本...
2021-10-25
0
668
STL容器共性机制
STL容器所提供的都是值寓意,而非引用寓意,也就是说当我们给容器中插入元素的时候,容器内部实施了拷贝动作,将我们要插入的元素再另行拷贝一份放入到容器中,而不是将原数据元素直接放进容器中,也就是说所用元素必须能够被拷贝。 1.除了queue和stack之外,每个容器都提供可返回迭代器的函数,运用返回...
2021-10-25
0
354
数据结构--环形队列--c++实现
queue.h #ifndef queue_h #define queue_h class myQueue { public: myQueue(int qCapacity); virtual~myQueue(); void clearQ(); bool empty...
2021-10-25
0
419
数据结构--栈--c++实现
stack.h #ifndef mystack_h #define mystack_h class myStack { public: myStack(int size); virtual ~myStack(); bool stackEmpty(); bool s...
2021-10-25
0
329
数据结构--线性表--c++实现
** List.h ** #ifndef list_h #define list_h class List { public: List(int size); ~List(); void clearList(); bool listEmpty(); i...
2021-10-25
0
370
数据结构--简单二叉树--c++实现
** tree.h ** #ifndef tree_h #define tree_h class Tree { public: Tree(int size,int *root); ~Tree(); int *searchNode(int nodeIndex); ...
2021-10-25
0
392
数据结构--链表--c++实现
node.h #ifndef node_h #define node_h class node { public: void print(); int data; node *next; }; #endif node.cpp #include "...
2021-10-25
0
416
数据结构--图--c++实现
node.h #ifndef node_h #define node_h class node { public: node(char data = 0); char _data; bool _isVisited; }; #endif node.cpp #i...
2021-10-25
0
687
手撕九大排序算法(c++语言实现)
01 插入排序 每次选择一个元素,并且将这个元素和整个数组中的所有元素进行比较,然后插入到合适的位置,图片演示如上,时间复杂度 O(n^2) 02 希尔排序(Shell Sort) 这个是插入排序的修改版,根据步长由长到短分组,进行排序,直到步长为1为止,属于插入排序的一种。 代码实现如下: ...
2021-10-25
0
1050
电力窃漏电用户识别
数据集 链接: https://pan.baidu.com/s/167OzcIWj82O37Hku6tIpDA 提取码: sq27 由于missing_data.xls数据中有部分缺失值,故需要对数据进行补全 这里采用拉格朗日插值法补全 代码如下 #拉格朗日插值法处理数据缺失值 import pa...
2021-10-25
0
443
首页
上一页
1
2
3
4
5
6
下一页
末页