上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 68 下一页
摘要: 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 喵小喵~ 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 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 喵小喵~ 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 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 喵小喵~ 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 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 喵小喵~ 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 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 喵小喵~ 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 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 喵小喵~ 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 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 喵小喵~ 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 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 喵小喵~ 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 全局变量,多线程操作不安全,可能会导致结果不安全 互斥锁,操作很慢,但是结果正确 原子变量,操作很快,结果正确 代码示例 阅读全文
posted @ 2018-04-01 23:48 喵小喵~ 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 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 喵小喵~ 阅读(313) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 68 下一页