会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
喵小喵~
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
68
下一页
2018年4月4日
144.链表库以及迭代算法原理
摘要: Node.h 1 #pragma once 2 3 template<class T> 4 class Node 5 { 6 public: 7 T t; 8 Node *pNext; 9 10 }; forwart_list.h 1 #pragma once 2 #include "Node.h"
阅读全文
posted @ 2018-04-04 00:36 喵小喵~
阅读(204)
评论(0)
推荐(0)
2018年4月3日
143.vector模板库
摘要: myvector.h 1 #pragma once 2 #include <initializer_list> 3 #include <iostream> 4 using namespace std; 5 6 template<class T> 7 class myvector 8 { 9 publ
阅读全文
posted @ 2018-04-03 22:02 喵小喵~
阅读(144)
评论(0)
推荐(0)
152.字符串模板库
摘要: string.h 1 #pragma once 2 #include <string> 3 #include <cstdlib> 4 #include <functional> 5 using namespace std; 6 7 class outofrange 8 { 9 10 }; 11 12
阅读全文
posted @ 2018-04-03 19:10 喵小喵~
阅读(277)
评论(0)
推荐(0)
2018年4月2日
27.boost多线程
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 using namespace std; 6 using namespace boost; 7 8 9 void main() 10 { 11 boost::thread t1([]() {MessageBoxA(0, "1...
阅读全文
posted @ 2018-04-02 10:55 喵小喵~
阅读(137)
评论(0)
推荐(0)
26.boost文件库
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 using namespace std; 6 using namespace boost; 7 8 9 void main() 10 { 11 boost::filesystem::directory_iterator be...
阅读全文
posted @ 2018-04-02 10:49 喵小喵~
阅读(174)
评论(0)
推荐(0)
25.文件当做内存来操作
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 9 using namespace std; 10 using namespace boost; 11 12 //#pragma comment(lib,"li...
阅读全文
posted @ 2018-04-02 10:38 喵小喵~
阅读(201)
评论(0)
推荐(0)
24.函数信号机制(本质上就是函数指针)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 #include //信号 6 #include 7 8 using namespace std; 9 using namespace boost; 10 11 //信号模拟 12 class button...
阅读全文
posted @ 2018-04-02 10:25 喵小喵~
阅读(210)
评论(0)
推荐(0)
4.自定义线程
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 class mythread :public thread 8 { 9 public: 10 mythread() :thread() 11 { 12 13 } 14 15 //class 模...
阅读全文
posted @ 2018-04-02 00:00 喵小喵~
阅读(119)
评论(0)
推荐(0)
2018年4月1日
3.原子变量
摘要: 全局变量,多线程操作不安全,可能会导致结果不安全 互斥锁,操作很慢,但是结果正确 原子变量,操作很快,结果正确 代码示例
阅读全文
posted @ 2018-04-01 23:48 喵小喵~
阅读(146)
评论(0)
推荐(0)
3.多线程传参,以及tuple数组
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 void run() 8 { 9 MessageBox(0, L"hello", L"hello", 0); 10 } 11 12 void runA(const wchar_t *s, const wchar_t *...
阅读全文
posted @ 2018-04-01 23:41 喵小喵~
阅读(318)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
68
下一页
公告