08 2021 档案

摘要:#include <iostream> using namespace std; #include <algorithm> #include <vector> void myprint5(int val) { cout << val << " "; } //一、set_intersection /* 阅读全文
posted @ 2021-08-28 14:54 花与不易 阅读(40) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <algorithm> #include <vector> #include <numeric> void myprint4(int val) { cout << val << " "; } //一、 阅读全文
posted @ 2021-08-28 14:42 花与不易 阅读(86) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <algorithm> #include <vector> void myprint3(int val) { cout << val << " "; } //一、replace /* replace( 阅读全文
posted @ 2021-08-28 14:23 花与不易 阅读(43) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <algorithm> #include <vector> #include <time.h> #include <functional> //一、sort /* sort(iterator beg, 阅读全文
posted @ 2021-08-28 14:05 花与不易 阅读(32) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <algorithm> #include <vector> //一、find /* 查找指定元素,找到返回指定元素的迭代器,找不到返回结束迭代器end() find(iterator beg, ite 阅读全文
posted @ 2021-08-28 13:43 花与不易 阅读(42) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <algorithm> #include <vector> //一、for_each()实现遍历容器 /* for_each(iterator beg, iterator end, _func) be 阅读全文
posted @ 2021-08-27 17:16 花与不易 阅读(57) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <map> #include <algorithm> void printMap(const map<int, int>& mp) { for (auto it = mp.begin(); it != 阅读全文
posted @ 2021-08-27 14:57 花与不易 阅读(129) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <set> #include <algorithm> void printSet(const set<int>& st) { for (auto it = st.begin(); it != st.e 阅读全文
posted @ 2021-08-27 13:41 花与不易 阅读(251) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <string> #include <algorithm> //成对出现的数据,利用对组可以返回两个数据 /* 两种创建方式 pair<type, type> p(value1, value2); p 阅读全文
posted @ 2021-08-27 13:06 花与不易 阅读(32) 评论(0) 推荐(0) 编辑
摘要:这个月把小论文排版好,把c++复习完一遍,把linux基本操作学完。 下个月把论文投出去,开始设计模式,还有系统编程,然后是网络编程。 然后开始坚持每天刷一道题,然后开始毕设。 阅读全文
posted @ 2021-08-26 16:45 花与不易 阅读(30) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <list> #include <algorithm> void printList(const list<int>& L) { for (auto it = L.begin(); it != L.e 阅读全文
posted @ 2021-08-26 16:14 花与不易 阅读(56) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <queue> #include <algorithm> /* //一、构造函数 queue<T> que; 采用模板类实现,queue对象的默认构造形式 queue(const queue & qu 阅读全文
posted @ 2021-08-26 15:07 花与不易 阅读(150) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <stack> #include <algorithm> /* //一、构造函数 stack<T> stk; 采用模板类实现,stack对象的默认构造形式 stack(const stack & st 阅读全文
posted @ 2021-08-26 14:56 花与不易 阅读(124) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <deque> #include <algorithm> void printDeque(const deque<int>& d) { for (auto it = d.begin(); it != 阅读全文
posted @ 2021-08-26 14:41 花与不易 阅读(100) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <vector> void printVector(vector<int>& v) { for (auto it = v.begin(); it != v.end(); it++) { cout << 阅读全文
posted @ 2021-08-26 11:39 花与不易 阅读(148) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #include <string> //一、构造函数 /* string(); 创建一个空的字符串,例如string str; string(const char* s); 使用字符串s初始化 string(const 阅读全文
posted @ 2021-08-26 10:39 花与不易 阅读(81) 评论(0) 推荐(0) 编辑
摘要:手语识别项目。 简介:研究生电子设计竞赛赛题,设计基于视觉感知的手语识别系统,自动将手语翻译成文本或语言,为聋哑人和普通人之间的交流提供便利。本人工作及技术重点:设计基于深度图像的三维姿态估计算法,缓解光照、背景等干扰问题,同时得到更为完整的空间运动轨迹信息。设计帧间差分累加法进行孤立词分割,同时设 阅读全文
posted @ 2021-08-07 14:07 花与不易 阅读(452) 评论(0) 推荐(0) 编辑
摘要:题目:有一个带有四个圆形拨轮的转盘锁,每个拨轮都有0-9一共10个数字。每个拨轮可以上下旋转:例如把9变成0,或者0变成9,每次旋转只能将一个拨轮旋转一下。转盘锁的四个拨轮初始都是0,用字符串"0000"表示。现在给定输入一个列表deadends和一个字符串target,其中taeget代表可以打开 阅读全文
posted @ 2021-08-06 16:07 花与不易 阅读(103) 评论(0) 推荐(0) 编辑
摘要:采用队列实现,BFS,功能:BFS层次遍历打印、按照节点将BFS序列化成一个字符。 #include <iostream> #include <string> #include <queue> using namespace std; struct TreeNode { int val; TreeN 阅读全文
posted @ 2021-08-06 11:02 花与不易 阅读(112) 评论(0) 推荐(0) 编辑
摘要:三个功能:先序遍历打印、节点先序遍历序列化、字符串先序遍历反序列化 #include <iostream> #include <string> #include <vector> using namespace std; struct TreeNode { int val; TreeNode* le 阅读全文
posted @ 2021-08-06 11:00 花与不易 阅读(154) 评论(0) 推荐(0) 编辑
摘要:参考先序遍历,自己实现了一遍c++后序遍历的三个功能:递归打印、序列化成字符串输出、字符串反序列化(通过vector数组转化)。代码如下。 思路:反序列化要注意的点就是,和先序遍历不一样,先序遍历是第一个就是根节点,而后序遍历是后面是根节点。 所以我选择先转化成vector数组,然后通过.back和 阅读全文
posted @ 2021-08-06 10:53 花与不易 阅读(337) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示