├── 19.9.10 ├── 19.9.10.sln └── 19.9.10 │ ├── 19.9.10.vcxproj │ ├── 19.9.10.vcxproj.filters │ └── test.cpp ├── AVL树模拟实现 ├── AVL树模拟实现.sln └── AVL树模拟实现 │ ├── AVL树模拟实现.vcxproj │ ├── AVL树模拟实现.vcxproj.filters │ ├── test.cpp │ └── test.h ├── B-树框架 ├── B-树框架.sln └── B-树框架 │ ├── B-树框架.vcxproj │ ├── B-树框架.vcxproj.filters │ └── Btree.cpp ├── LinuxTcp套接字 ├── LinuxTcp套接字.sln └── LinuxTcp套接字 │ ├── LinuxTcp套接字.vcxproj │ ├── LinuxTcp套接字.vcxproj.filters │ └── test.cpp ├── atoi ├── atoi.sln └── atoi │ ├── atoi.vcxproj │ ├── atoi.vcxproj.filters │ └── test.cpp ├── list迭代器 ├── list迭代器.sln └── list迭代器 │ ├── list迭代器.vcxproj │ ├── list迭代器.vcxproj.filters │ └── test.h ├── map使用 ├── map使用.sln └── map使用 │ ├── map使用.vcxproj │ ├── map使用.vcxproj.filters │ └── test.cpp ├── string使用练习 ├── string使用练习.sln └── string使用练习 │ ├── string使用练习.vcxproj │ ├── string使用练习.vcxproj.filters │ └── test.cpp ├── vector使用练习 ├── vector使用练习.sln └── vector使用练习 │ ├── test.cpp │ ├── vector使用练习.vcxproj │ └── vector使用练习.vcxproj.filters ├── 二叉搜索树模拟实现 ├── set模拟实现.sln └── set模拟实现 │ ├── set模拟实现.vcxproj │ ├── set模拟实现.vcxproj.filters │ ├── test.cpp │ └── test.h ├── 二叉树的垂序遍历 ├── 二叉树的垂序遍历.sln └── 二叉树的垂序遍历 │ ├── 二叉树的垂序遍历.vcxproj │ ├── 二叉树的垂序遍历.vcxproj.filters │ └── 源.cpp ├── 位图 ├── 位图.sln └── 位图 │ ├── BitSet.cpp │ ├── 位图.vcxproj │ └── 位图.vcxproj.filters ├── 删除二叉树中的节点 ├── 删除二叉树中的节点.sln └── 删除二叉树中的节点 │ ├── test.cpp │ ├── 删除二叉树中的节点.vcxproj │ └── 删除二叉树中的节点.vcxproj.filters ├── 动态内存管理 ├── 动态内存管理.sln └── 动态内存管理 │ ├── test.cpp │ ├── 动态内存管理.vcxproj │ └── 动态内存管理.vcxproj.filters ├── 单例模式 ├── 单例模式.sln └── 单例模式 │ ├── test.cpp │ ├── 单例模式.vcxproj │ └── 单例模式.vcxproj.filters ├── 单链表oj ├── 单链表oj.sln └── 单链表oj │ ├── test.cpp │ ├── 单链表oj.vcxproj │ └── 单链表oj.vcxproj.filters ├── 单链表oj2 ├── 单链表oj2.sln └── 单链表oj2 │ ├── test.cpp │ ├── 单链表oj2.vcxproj │ └── 单链表oj2.vcxproj.filters ├── 单链表(两数相加) ├── 单链表(两数相加).sln └── 单链表(两数相加) │ ├── test.cpp │ ├── 单链表(两数相加).vcxproj │ └── 单链表(两数相加).vcxproj.filters ├── 哈希表 ├── 哈希表.sln └── 哈希表 │ ├── HashTable.h │ ├── UnorderedMap.h │ ├── UnorderedSet.h │ ├── common.h │ ├── test.cpp │ ├── 哈希表.vcxproj │ └── 哈希表.vcxproj.filters ├── 哈希表复习 ├── 哈希表复习.sln └── 哈希表复习 │ ├── Common.h │ ├── HashTable.h │ ├── Unordered_map.h │ ├── test.cpp │ ├── 哈希表复习.vcxproj │ └── 哈希表复习.vcxproj.filters ├── 堆排序 ├── 堆排序.sln └── 堆排序 │ ├── 堆排序.vcxproj │ ├── 堆排序.vcxproj.filters │ └── 源.cpp ├── 多态 ├── 多态.sln └── 多态 │ ├── 多态.vcxproj │ ├── 多态.vcxproj.filters │ └── 源.cpp ├── 多线程交叉打印 ├── 多线程交叉打印.sln └── 多线程交叉打印 │ ├── thread.cpp │ ├── 多线程交叉打印.vcxproj │ └── 多线程交叉打印.vcxproj.filters ├── 多阶哈希 ├── 多阶哈希.sln └── 多阶哈希 │ ├── MorderHash.h │ ├── 多阶哈希.vcxproj │ └── 多阶哈希.vcxproj.filters ├── 字典树 ├── 字典树.sln └── 字典树 │ ├── test.h │ ├── 字典树.vcxproj │ └── 字典树.vcxproj.filters ├── 字符串oj1 ├── 字符串oj1.sln └── 字符串oj1 │ ├── 字符串oj1.vcxproj │ ├── 字符串oj1.vcxproj.filters │ └── 源.cpp ├── 工厂模式 ├── 工厂模式.sln └── 工厂模式 │ ├── Factory1.cpp │ ├── Factory2.cpp │ ├── Factory3.cpp │ ├── 工厂模式.vcxproj │ └── 工厂模式.vcxproj.filters ├── 布隆过滤器 ├── 布隆过滤器.sln └── 布隆过滤器 │ ├── test.h │ ├── 布隆过滤器.vcxproj │ └── 布隆过滤器.vcxproj.filters ├── 并查集 ├── 并查集.sln └── 并查集 │ ├── test.cpp │ ├── 并查集.vcxproj │ └── 并查集.vcxproj.filters ├── 异常 ├── 异常.sln └── 异常 │ ├── test.cpp │ ├── 异常.vcxproj │ └── 异常.vcxproj.filters ├── 归并排序 ├── 归并排序.sln └── 归并排序 │ ├── test.cpp │ ├── 归并排序.vcxproj │ └── 归并排序.vcxproj.filters ├── 快速排序 ├── 快速排序.sln └── 快速排序 │ ├── test.cpp │ ├── 快速排序.vcxproj │ └── 快速排序.vcxproj.filters ├── 插入排序 ├── 插入排序.sln └── 插入排序 │ ├── test.cpp │ ├── 插入排序.vcxproj │ └── 插入排序.vcxproj.filters ├── 数据的存储 ├── 数据的存储.sln └── 数据的存储 │ ├── test.cpp │ ├── 数据的存储.vcxproj │ └── 数据的存储.vcxproj.filters ├── 无锁队列 ├── 无锁队列.sln └── 无锁队列 │ ├── test.cpp │ ├── 无锁队列.vcxproj │ └── 无锁队列.vcxproj.filters ├── 日期类 ├── Debug │ ├── 日期类.exe │ ├── 日期类.ilk │ └── 日期类.pdb ├── 日期类.sdf ├── 日期类.sln ├── 日期类.v12.suo └── 日期类 │ ├── Debug │ ├── date.obj │ ├── vc120.idb │ ├── vc120.pdb │ ├── 日期类.log │ └── 日期类.tlog │ │ ├── CL.read.1.tlog │ │ ├── CL.write.1.tlog │ │ ├── cl.command.1.tlog │ │ ├── link.command.1.tlog │ │ ├── link.read.1.tlog │ │ ├── link.write.1.tlog │ │ └── 日期类.lastbuildstate │ ├── date.cpp │ ├── 日期类.vcxproj │ └── 日期类.vcxproj.filters ├── 日期类(修改) ├── 日期类(修改).sln └── 日期类(修改) │ ├── Date.cpp │ ├── 日期类(修改).vcxproj │ └── 日期类(修改).vcxproj.filters ├── 智能指针1 ├── 智能指针1.sln └── 智能指针1 │ ├── test.cpp │ ├── 智能指针1.vcxproj │ └── 智能指针1.vcxproj.filters ├── 智能指针(上) ├── 智能指针(上).sln └── 智能指针(上) │ ├── test.cpp │ ├── 智能指针(上).vcxproj │ └── 智能指针(上).vcxproj.filters ├── 杨辉三角 ├── 杨辉三角.sln └── 杨辉三角 │ ├── test.cpp │ ├── 杨辉三角.vcxproj │ └── 杨辉三角.vcxproj.filters ├── 模拟pirority_queue ├── 模拟pirority_queue.sln └── 模拟pirority_queue │ ├── pitority_queue.h │ ├── test.cpp │ ├── 模拟pirority_queue.vcxproj │ └── 模拟pirority_queue.vcxproj.filters ├── 模拟string ├── 模拟string.sln └── 模拟string │ ├── string.cpp │ ├── string.h │ ├── 模拟string.vcxproj │ └── 模拟string.vcxproj.filters ├── 模拟vector ├── 模拟vector.sln └── 模拟vector │ ├── test.cpp │ ├── test.h │ ├── 模拟vector.vcxproj │ └── 模拟vector.vcxproj.filters ├── 模拟字符串库函数 ├── 模拟字符串库函数.sln └── 模拟字符串库函数 │ ├── test.c │ ├── 模拟字符串库函数.vcxproj │ └── 模拟字符串库函数.vcxproj.filters ├── 模拟实现list ├── 模拟实现list.sln └── 模拟实现list │ ├── test.cpp │ ├── test.h │ ├── 模拟实现list.vcxproj │ └── 模拟实现list.vcxproj.filters ├── 模拟实现优化版vector增容 ├── 模拟实现优化版vector增容.sln └── 模拟实现优化版vector增容 │ ├── test.cpp │ ├── 模拟实现优化版vector增容.vcxproj │ └── 模拟实现优化版vector增容.vcxproj.filters ├── 模拟实现无锁队列 ├── 模拟实现无锁队列.sln └── 模拟实现无锁队列 │ ├── test.cpp │ ├── 模拟实现无锁队列.vcxproj │ └── 模拟实现无锁队列.vcxproj.filters ├── 模板初阶 ├── 模板初阶.sln └── 模板初阶 │ ├── test.cpp │ ├── 模板初阶.vcxproj │ └── 模板初阶.vcxproj.filters ├── 类和对象1 ├── Debug │ ├── 类和对象1.exe │ ├── 类和对象1.ilk │ └── 类和对象1.pdb ├── 类和对象1.sdf ├── 类和对象1.sln ├── 类和对象1.v12.suo └── 类和对象1 │ ├── Debug │ ├── test.obj │ ├── vc120.idb │ ├── vc120.pdb │ ├── 类和对象1.Build.CppClean.log │ ├── 类和对象1.log │ └── 类和对象1.tlog │ │ ├── CL.read.1.tlog │ │ ├── CL.write.1.tlog │ │ ├── cl.command.1.tlog │ │ ├── link.command.1.tlog │ │ ├── link.read.1.tlog │ │ ├── link.write.1.tlog │ │ └── 类和对象1.lastbuildstate │ ├── test.cpp │ ├── 类和对象1.vcxproj │ └── 类和对象1.vcxproj.filters ├── 类和对象2 ├── 类和对象2.sln └── 类和对象2 │ ├── test.cpp │ ├── 类和对象2.vcxproj │ └── 类和对象2.vcxproj.filters ├── 类型萃取 ├── 类型萃取.sln └── 类型萃取 │ ├── test.cpp │ ├── 类型萃取.vcxproj │ └── 类型萃取.vcxproj.filters ├── 红黑树模拟实现 ├── 红黑树模拟实现.sln └── 红黑树模拟实现 │ ├── mymap.h │ ├── myset.h │ ├── test.cpp │ ├── test.h │ ├── 红黑树模拟实现.vcxproj │ └── 红黑树模拟实现.vcxproj.filters ├── 线程池 ├── 线程池.sln └── 线程池 │ ├── tpool.cpp │ ├── 线程池.vcxproj │ └── 线程池.vcxproj.filters ├── 继承 ├── 继承.sln └── 继承 │ ├── test.cpp │ ├── 继承.vcxproj │ └── 继承.vcxproj.filters ├── 闭散列 ├── 闭散列.sln └── 闭散列 │ ├── test.cpp │ ├── test.h │ ├── 闭散列.vcxproj │ └── 闭散列.vcxproj.filters ├── 顺序表oj ├── 顺序表oj.sln └── 顺序表oj │ ├── test.cpp │ ├── 顺序表oj.vcxproj │ └── 顺序表oj.vcxproj.filters └── 顺序表oj2 ├── 顺序表oj2.sln └── 顺序表oj2 ├── test.cpp ├── 顺序表oj2.vcxproj └── 顺序表oj2.vcxproj.filters /19.9.10/19.9.10.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "19.9.10", "19.9.10\19.9.10.vcxproj", "{BD76DD2C-0583-45AE-A737-0B8323DD22A2}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {BD76DD2C-0583-45AE-A737-0B8323DD22A2}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {BD76DD2C-0583-45AE-A737-0B8323DD22A2}.Debug|Win32.Build.0 = Debug|Win32 16 | {BD76DD2C-0583-45AE-A737-0B8323DD22A2}.Release|Win32.ActiveCfg = Release|Win32 17 | {BD76DD2C-0583-45AE-A737-0B8323DD22A2}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /19.9.10/19.9.10/19.9.10.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /19.9.10/19.9.10/test.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | using namespace std; 6 | 7 | int main() 8 | { 9 | int n; 10 | while (cin >> n) 11 | { 12 | vector v(n); 13 | for (int i = 0; i < n; i++) { 14 | cin >> v[i]; 15 | } 16 | if (v.size() == 0){ 17 | cout << -1; break; 18 | } 19 | sort(v.begin(), v.end()); 20 | int cur = v[0]; 21 | for (auto& e : v) 22 | { 23 | if (e != cur) 24 | { 25 | cout << cur << endl; 26 | break; 27 | } 28 | cur++; 29 | } 30 | } 31 | system("pause"); 32 | return 0; 33 | } 34 | 35 | //int MinEngery(vector& v, int n, int x, int y) 36 | //{ 37 | // int engery = 0; 38 | // for (int i = 0; i < n; i++) 39 | // { 40 | // int end = i; 41 | // if (v[i] == 0) 42 | // { 43 | // while (end < n && v[end] == 0) 44 | // { 45 | // end++; 46 | // } 47 | // engery += min(x, y); 48 | // } 49 | // i = end; 50 | // } 51 | // return engery; 52 | //} 53 | // 54 | //int main() 55 | //{ 56 | // int n, x, y; 57 | // cin >> n >> x >> y; 58 | // vector v(n, 0); 59 | // for (int i = 0; i < n; i++) 60 | // cin >> v[i]; 61 | // int ret = MinEngery(v, n, x, y); 62 | // cout << ret << endl; 63 | // system("pause"); 64 | // return 0; 65 | //} -------------------------------------------------------------------------------- /AVL树模拟实现/AVL树模拟实现.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AVL树模拟实现", "AVL树模拟实现\AVL树模拟实现.vcxproj", "{AD991165-7011-4D6F-A7F6-BC53C55D966B}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {AD991165-7011-4D6F-A7F6-BC53C55D966B}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {AD991165-7011-4D6F-A7F6-BC53C55D966B}.Debug|Win32.Build.0 = Debug|Win32 16 | {AD991165-7011-4D6F-A7F6-BC53C55D966B}.Release|Win32.ActiveCfg = Release|Win32 17 | {AD991165-7011-4D6F-A7F6-BC53C55D966B}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /AVL树模拟实现/AVL树模拟实现/AVL树模拟实现.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 头文件 20 | 21 | 22 | 23 | 24 | 源文件 25 | 26 | 27 | -------------------------------------------------------------------------------- /AVL树模拟实现/AVL树模拟实现/test.cpp: -------------------------------------------------------------------------------- 1 | #include"test.h" 2 | 3 | int main() 4 | { 5 | test(); 6 | system("pause"); 7 | return 0; 8 | } -------------------------------------------------------------------------------- /AVL树模拟实现/AVL树模拟实现/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/AVL树模拟实现/AVL树模拟实现/test.h -------------------------------------------------------------------------------- /B-树框架/B-树框架.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "B-树框架", "B-树框架\B-树框架.vcxproj", "{1124C9FA-5501-4F2E-A2CF-BB6E0DE00919}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {1124C9FA-5501-4F2E-A2CF-BB6E0DE00919}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {1124C9FA-5501-4F2E-A2CF-BB6E0DE00919}.Debug|Win32.Build.0 = Debug|Win32 16 | {1124C9FA-5501-4F2E-A2CF-BB6E0DE00919}.Release|Win32.ActiveCfg = Release|Win32 17 | {1124C9FA-5501-4F2E-A2CF-BB6E0DE00919}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /B-树框架/B-树框架/B-树框架.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /B-树框架/B-树框架/Btree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/B-树框架/B-树框架/Btree.cpp -------------------------------------------------------------------------------- /LinuxTcp套接字/LinuxTcp套接字.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LinuxTcp套接字", "LinuxTcp套接字\LinuxTcp套接字.vcxproj", "{5BC0D9BC-BEA7-4DB6-A44A-E0E69C06D680}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {5BC0D9BC-BEA7-4DB6-A44A-E0E69C06D680}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {5BC0D9BC-BEA7-4DB6-A44A-E0E69C06D680}.Debug|Win32.Build.0 = Debug|Win32 16 | {5BC0D9BC-BEA7-4DB6-A44A-E0E69C06D680}.Release|Win32.ActiveCfg = Release|Win32 17 | {5BC0D9BC-BEA7-4DB6-A44A-E0E69C06D680}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /LinuxTcp套接字/LinuxTcp套接字/LinuxTcp套接字.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /LinuxTcp套接字/LinuxTcp套接字/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/LinuxTcp套接字/LinuxTcp套接字/test.cpp -------------------------------------------------------------------------------- /atoi/atoi.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "atoi", "atoi\atoi.vcxproj", "{68BFFCA6-A74A-4432-A9C9-1C1292E8499E}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {68BFFCA6-A74A-4432-A9C9-1C1292E8499E}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {68BFFCA6-A74A-4432-A9C9-1C1292E8499E}.Debug|Win32.Build.0 = Debug|Win32 16 | {68BFFCA6-A74A-4432-A9C9-1C1292E8499E}.Release|Win32.ActiveCfg = Release|Win32 17 | {68BFFCA6-A74A-4432-A9C9-1C1292E8499E}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /atoi/atoi/atoi.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /list迭代器/list迭代器.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "list迭代器", "list迭代器\list迭代器.vcxproj", "{AD4D2348-2DFD-42D1-8CCA-EE3A1691D3D5}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {AD4D2348-2DFD-42D1-8CCA-EE3A1691D3D5}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {AD4D2348-2DFD-42D1-8CCA-EE3A1691D3D5}.Debug|Win32.Build.0 = Debug|Win32 16 | {AD4D2348-2DFD-42D1-8CCA-EE3A1691D3D5}.Release|Win32.ActiveCfg = Release|Win32 17 | {AD4D2348-2DFD-42D1-8CCA-EE3A1691D3D5}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /list迭代器/list迭代器/list迭代器.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /list迭代器/list迭代器/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/list迭代器/list迭代器/test.h -------------------------------------------------------------------------------- /map使用/map使用.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "map使用", "map使用\map使用.vcxproj", "{9FCE8A10-8F09-4676-865D-24CA7AC8ECF2}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {9FCE8A10-8F09-4676-865D-24CA7AC8ECF2}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {9FCE8A10-8F09-4676-865D-24CA7AC8ECF2}.Debug|Win32.Build.0 = Debug|Win32 16 | {9FCE8A10-8F09-4676-865D-24CA7AC8ECF2}.Release|Win32.ActiveCfg = Release|Win32 17 | {9FCE8A10-8F09-4676-865D-24CA7AC8ECF2}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /map使用/map使用/map使用.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /map使用/map使用/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/map使用/map使用/test.cpp -------------------------------------------------------------------------------- /string使用练习/string使用练习.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "string使用练习", "string使用练习\string使用练习.vcxproj", "{464CEAB0-904D-4861-9F18-0807C7A70F40}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {464CEAB0-904D-4861-9F18-0807C7A70F40}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {464CEAB0-904D-4861-9F18-0807C7A70F40}.Debug|Win32.Build.0 = Debug|Win32 16 | {464CEAB0-904D-4861-9F18-0807C7A70F40}.Release|Win32.ActiveCfg = Release|Win32 17 | {464CEAB0-904D-4861-9F18-0807C7A70F40}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /string使用练习/string使用练习/string使用练习.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /string使用练习/string使用练习/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/string使用练习/string使用练习/test.cpp -------------------------------------------------------------------------------- /vector使用练习/vector使用练习.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vector使用练习", "vector使用练习\vector使用练习.vcxproj", "{C4252851-4471-4637-B1A0-7A5406DF5465}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {C4252851-4471-4637-B1A0-7A5406DF5465}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {C4252851-4471-4637-B1A0-7A5406DF5465}.Debug|Win32.Build.0 = Debug|Win32 16 | {C4252851-4471-4637-B1A0-7A5406DF5465}.Release|Win32.ActiveCfg = Release|Win32 17 | {C4252851-4471-4637-B1A0-7A5406DF5465}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /vector使用练习/vector使用练习/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/vector使用练习/vector使用练习/test.cpp -------------------------------------------------------------------------------- /vector使用练习/vector使用练习/vector使用练习.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /二叉搜索树模拟实现/set模拟实现.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "set模拟实现", "set模拟实现\set模拟实现.vcxproj", "{4FB74625-CB6A-459D-8F28-6CCA73E1049E}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {4FB74625-CB6A-459D-8F28-6CCA73E1049E}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {4FB74625-CB6A-459D-8F28-6CCA73E1049E}.Debug|Win32.Build.0 = Debug|Win32 16 | {4FB74625-CB6A-459D-8F28-6CCA73E1049E}.Release|Win32.ActiveCfg = Release|Win32 17 | {4FB74625-CB6A-459D-8F28-6CCA73E1049E}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /二叉搜索树模拟实现/set模拟实现/set模拟实现.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 头文件 20 | 21 | 22 | 23 | 24 | 源文件 25 | 26 | 27 | -------------------------------------------------------------------------------- /二叉搜索树模拟实现/set模拟实现/test.cpp: -------------------------------------------------------------------------------- 1 | #include"test.h" 2 | 3 | int main() 4 | { 5 | test1(); 6 | system("pause"); 7 | return 0; 8 | } -------------------------------------------------------------------------------- /二叉树的垂序遍历/二叉树的垂序遍历.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "二叉树的垂序遍历", "二叉树的垂序遍历\二叉树的垂序遍历.vcxproj", "{C9E06261-3924-4EEF-B481-FDFD14ECD55C}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {C9E06261-3924-4EEF-B481-FDFD14ECD55C}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {C9E06261-3924-4EEF-B481-FDFD14ECD55C}.Debug|Win32.Build.0 = Debug|Win32 16 | {C9E06261-3924-4EEF-B481-FDFD14ECD55C}.Release|Win32.ActiveCfg = Release|Win32 17 | {C9E06261-3924-4EEF-B481-FDFD14ECD55C}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /二叉树的垂序遍历/二叉树的垂序遍历/二叉树的垂序遍历.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /二叉树的垂序遍历/二叉树的垂序遍历/源.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/二叉树的垂序遍历/二叉树的垂序遍历/源.cpp -------------------------------------------------------------------------------- /位图/位图.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "位图", "位图\位图.vcxproj", "{E9A59C96-1172-499A-8CD7-A9E92E290D50}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {E9A59C96-1172-499A-8CD7-A9E92E290D50}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {E9A59C96-1172-499A-8CD7-A9E92E290D50}.Debug|Win32.Build.0 = Debug|Win32 16 | {E9A59C96-1172-499A-8CD7-A9E92E290D50}.Release|Win32.ActiveCfg = Release|Win32 17 | {E9A59C96-1172-499A-8CD7-A9E92E290D50}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /位图/位图/BitSet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/位图/位图/BitSet.cpp -------------------------------------------------------------------------------- /位图/位图/位图.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | 15 | 16 | 17 | {E9A59C96-1172-499A-8CD7-A9E92E290D50} 18 | 位图 19 | 20 | 21 | 22 | Application 23 | true 24 | v120 25 | Unicode 26 | 27 | 28 | Application 29 | false 30 | v120 31 | true 32 | Unicode 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | Level3 48 | Disabled 49 | true 50 | 51 | 52 | true 53 | 54 | 55 | 56 | 57 | Level3 58 | MaxSpeed 59 | true 60 | true 61 | true 62 | 63 | 64 | true 65 | true 66 | true 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /位图/位图/位图.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /删除二叉树中的节点/删除二叉树中的节点.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "删除二叉树中的节点", "删除二叉树中的节点\删除二叉树中的节点.vcxproj", "{3ED2D7E8-3A50-4654-B372-E080AA95F097}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {3ED2D7E8-3A50-4654-B372-E080AA95F097}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {3ED2D7E8-3A50-4654-B372-E080AA95F097}.Debug|Win32.Build.0 = Debug|Win32 16 | {3ED2D7E8-3A50-4654-B372-E080AA95F097}.Release|Win32.ActiveCfg = Release|Win32 17 | {3ED2D7E8-3A50-4654-B372-E080AA95F097}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /删除二叉树中的节点/删除二叉树中的节点/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/删除二叉树中的节点/删除二叉树中的节点/test.cpp -------------------------------------------------------------------------------- /删除二叉树中的节点/删除二叉树中的节点/删除二叉树中的节点.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /动态内存管理/动态内存管理.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "动态内存管理", "动态内存管理\动态内存管理.vcxproj", "{E362637C-FA50-4E58-AADA-D29591FD3D0F}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {E362637C-FA50-4E58-AADA-D29591FD3D0F}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {E362637C-FA50-4E58-AADA-D29591FD3D0F}.Debug|Win32.Build.0 = Debug|Win32 16 | {E362637C-FA50-4E58-AADA-D29591FD3D0F}.Release|Win32.ActiveCfg = Release|Win32 17 | {E362637C-FA50-4E58-AADA-D29591FD3D0F}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /动态内存管理/动态内存管理/test.cpp: -------------------------------------------------------------------------------- 1 | int globalVar = 1; 2 | static int GlobalVar = 1; 3 | void Test() 4 | { 5 | static int staticVar = 1; 6 | int localVar = 1; 7 | int num[10] = { 1, 2, 3, 4 }; 8 | char char2[] = "abcd"; 9 | char* pChar = "abcd"; 10 | int* ptr1 = (int*)malloc(sizeof(int)* 4); 11 | int* ptr2 = (int*)calloc(4, sizeof(int)); 12 | int* ptr3 = (int*)realloc(ptr3, sizeof(int)* 4); 13 | free(ptr1); 14 | free(ptr3); 15 | } -------------------------------------------------------------------------------- /动态内存管理/动态内存管理/动态内存管理.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /单例模式/单例模式.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "单例模式", "单例模式\单例模式.vcxproj", "{2D0366F4-3C87-4CC2-A078-235AA9FA8FCF}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {2D0366F4-3C87-4CC2-A078-235AA9FA8FCF}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {2D0366F4-3C87-4CC2-A078-235AA9FA8FCF}.Debug|Win32.Build.0 = Debug|Win32 16 | {2D0366F4-3C87-4CC2-A078-235AA9FA8FCF}.Release|Win32.ActiveCfg = Release|Win32 17 | {2D0366F4-3C87-4CC2-A078-235AA9FA8FCF}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /单例模式/单例模式/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/单例模式/单例模式/test.cpp -------------------------------------------------------------------------------- /单例模式/单例模式/单例模式.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {2D0366F4-3C87-4CC2-A078-235AA9FA8FCF} 15 | 单例模式 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /单例模式/单例模式/单例模式.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /单链表oj/单链表oj.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "单链表oj", "单链表oj\单链表oj.vcxproj", "{299DD198-CF6F-4712-8F33-7C7C814DD54E}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {299DD198-CF6F-4712-8F33-7C7C814DD54E}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {299DD198-CF6F-4712-8F33-7C7C814DD54E}.Debug|Win32.Build.0 = Debug|Win32 16 | {299DD198-CF6F-4712-8F33-7C7C814DD54E}.Release|Win32.ActiveCfg = Release|Win32 17 | {299DD198-CF6F-4712-8F33-7C7C814DD54E}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /单链表oj/单链表oj/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/单链表oj/单链表oj/test.cpp -------------------------------------------------------------------------------- /单链表oj/单链表oj/单链表oj.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /单链表oj2/单链表oj2.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "单链表oj2", "单链表oj2\单链表oj2.vcxproj", "{BE2EE5F1-E7CA-4321-8E67-776122CBDD8E}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {BE2EE5F1-E7CA-4321-8E67-776122CBDD8E}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {BE2EE5F1-E7CA-4321-8E67-776122CBDD8E}.Debug|Win32.Build.0 = Debug|Win32 16 | {BE2EE5F1-E7CA-4321-8E67-776122CBDD8E}.Release|Win32.ActiveCfg = Release|Win32 17 | {BE2EE5F1-E7CA-4321-8E67-776122CBDD8E}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /单链表oj2/单链表oj2/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/单链表oj2/单链表oj2/test.cpp -------------------------------------------------------------------------------- /单链表oj2/单链表oj2/单链表oj2.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /单链表(两数相加)/单链表(两数相加).sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "单链表(两数相加)", "单链表(两数相加)\单链表(两数相加).vcxproj", "{42D3212A-FF2B-4196-93F1-A385945851D0}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {42D3212A-FF2B-4196-93F1-A385945851D0}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {42D3212A-FF2B-4196-93F1-A385945851D0}.Debug|Win32.Build.0 = Debug|Win32 16 | {42D3212A-FF2B-4196-93F1-A385945851D0}.Release|Win32.ActiveCfg = Release|Win32 17 | {42D3212A-FF2B-4196-93F1-A385945851D0}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /单链表(两数相加)/单链表(两数相加)/test.cpp: -------------------------------------------------------------------------------- 1 | ListNode* addTwoNumbers(ListNode* l1, ListNode* l2) { 2 | static int sum = 0; 3 | ListNode* newlist = new ListNode(0); 4 | ListNode* a = l1; 5 | ListNode* b = l2; 6 | ListNode* ret = newlist; 7 | while (a && b) 8 | { 9 | int tmp = a->val + b->val; 10 | sum += tmp; 11 | 12 | ListNode* nextnode = new ListNode(sum % 10); 13 | nextnode->next = NULL; 14 | 15 | newlist->next = nextnode; 16 | newlist = nextnode; 17 | 18 | sum /= 10; 19 | 20 | a = a->next; 21 | b = b->next; 22 | } 23 | while (a) 24 | { 25 | newlist->next = a; 26 | } 27 | while (b) 28 | { 29 | newlist->next = b; 30 | } 31 | if (sum != 0) 32 | { 33 | while (newlist->next) 34 | { 35 | newlist = newlist->next; 36 | } 37 | ListNode* nextnode = new ListNode(sum); 38 | newlist->next = nextnode; 39 | nextnode->next = NULL; 40 | } 41 | return ret->next; 42 | } -------------------------------------------------------------------------------- /单链表(两数相加)/单链表(两数相加)/单链表(两数相加).vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /哈希表/哈希表.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "哈希表", "哈希表\哈希表.vcxproj", "{6CF569BF-EFCA-4E5A-BDE9-42929B5D2F68}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {6CF569BF-EFCA-4E5A-BDE9-42929B5D2F68}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {6CF569BF-EFCA-4E5A-BDE9-42929B5D2F68}.Debug|Win32.Build.0 = Debug|Win32 16 | {6CF569BF-EFCA-4E5A-BDE9-42929B5D2F68}.Release|Win32.ActiveCfg = Release|Win32 17 | {6CF569BF-EFCA-4E5A-BDE9-42929B5D2F68}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /哈希表/哈希表/HashTable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/哈希表/哈希表/HashTable.h -------------------------------------------------------------------------------- /哈希表/哈希表/UnorderedMap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/哈希表/哈希表/UnorderedMap.h -------------------------------------------------------------------------------- /哈希表/哈希表/UnorderedSet.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | //#include"HashTable.h" 3 | #include"common.h" 4 | 5 | template> 6 | class UnorderedSet 7 | { 8 | public: 9 | typedef K ValueType; 10 | struct SetKeyOfValue 11 | { 12 | const K& operator()(const ValueType& v) 13 | { 14 | return v; 15 | } 16 | }; 17 | typedef typename HashTable::iterator iterator; 18 | 19 | pair Insert(const ValueType& v) 20 | { 21 | return ht.Insert(v); 22 | } 23 | 24 | iterator begin() 25 | { 26 | return ht.begin(); 27 | } 28 | 29 | iterator end() 30 | { 31 | return ht.end(); 32 | } 33 | private: 34 | HashTable ht; 35 | }; 36 | 37 | void Settest() 38 | { 39 | UnorderedSet s; 40 | for (int i = 0; i < 20; i++) 41 | { 42 | s.Insert(i); 43 | } 44 | 45 | for (auto& e : s) 46 | { 47 | cout << e << std::endl; 48 | } 49 | int i = 0; 50 | } 51 | -------------------------------------------------------------------------------- /哈希表/哈希表/common.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | template 3 | struct HashFunc 4 | { 5 | const K& operator()(const K& key) 6 | { 7 | return key; 8 | } 9 | }; 10 | 11 | template<> 12 | struct HashFunc 13 | { 14 | size_t operator()(const std::string& s) 15 | { 16 | size_t hash = 0; 17 | for (size_t i = 0; i < s.size(); i++) 18 | { 19 | hash = hash * 131 + s[i]; 20 | } 21 | return hash; 22 | } 23 | }; -------------------------------------------------------------------------------- /哈希表/哈希表/test.cpp: -------------------------------------------------------------------------------- 1 | #include"HashTable.h" 2 | #include"UnorderedMap.h" 3 | #include"UnorderedSet.h" 4 | #include 5 | 6 | int main() 7 | { 8 | Maptest(); 9 | Settest(); 10 | system("pause"); 11 | return 0; 12 | } -------------------------------------------------------------------------------- /哈希表/哈希表/哈希表.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 头文件 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 头文件 29 | 30 | 31 | 32 | 33 | 源文件 34 | 35 | 36 | -------------------------------------------------------------------------------- /哈希表复习/哈希表复习.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "哈希表复习", "哈希表复习\哈希表复习.vcxproj", "{6C52AE02-6A2A-4434-88D8-027818BF6818}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {6C52AE02-6A2A-4434-88D8-027818BF6818}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {6C52AE02-6A2A-4434-88D8-027818BF6818}.Debug|Win32.Build.0 = Debug|Win32 16 | {6C52AE02-6A2A-4434-88D8-027818BF6818}.Release|Win32.ActiveCfg = Release|Win32 17 | {6C52AE02-6A2A-4434-88D8-027818BF6818}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /哈希表复习/哈希表复习/Common.h: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | template 5 | class HashFunc 6 | { 7 | public: 8 | K& operator()(const K& key) 9 | { 10 | return key; 11 | } 12 | }; 13 | 14 | template<> 15 | class HashFunc 16 | { 17 | size_t operator()(const std::string& s) 18 | { 19 | size_t hash = 0; 20 | for (size_t i = 0; i < s.size(); i++) 21 | { 22 | hash = hash * 131 + s[i]; 23 | } 24 | return hash; 25 | } 26 | }; -------------------------------------------------------------------------------- /哈希表复习/哈希表复习/HashTable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/哈希表复习/哈希表复习/HashTable.h -------------------------------------------------------------------------------- /哈希表复习/哈希表复习/Unordered_map.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include"Common.h" 3 | #include"HashTable.h" 4 | 5 | template> 6 | class Unordered_Map 7 | { 8 | typedef pair ValueType; 9 | struct MapKeyOfValue 10 | { 11 | const K& operator()(const ValueType& v) 12 | { 13 | return v.first; 14 | } 15 | }; 16 | public: 17 | typedef typename HashTable::iterator iterator; 18 | 19 | pair Insert(const ValueType& v) 20 | { 21 | return ht.Insert(v); 22 | } 23 | 24 | iterator begin() 25 | { 26 | return ht.begin(); 27 | } 28 | 29 | iterator end() 30 | { 31 | return ht.end(); 32 | } 33 | 34 | V& operator[](const K& key) 35 | { 36 | pair ret = ht.Insert(make_pair(key, V())); 37 | return ret.first->second; 38 | } 39 | private: 40 | HashTable ht; 41 | }; -------------------------------------------------------------------------------- /哈希表复习/哈希表复习/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/哈希表复习/哈希表复习/test.cpp -------------------------------------------------------------------------------- /哈希表复习/哈希表复习/哈希表复习.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | 23 | 24 | 头文件 25 | 26 | 27 | 头文件 28 | 29 | 30 | 头文件 31 | 32 | 33 | -------------------------------------------------------------------------------- /堆排序/堆排序.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "堆排序", "堆排序\堆排序.vcxproj", "{D9AD600B-C5D1-43BB-9050-24962632E450}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {D9AD600B-C5D1-43BB-9050-24962632E450}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {D9AD600B-C5D1-43BB-9050-24962632E450}.Debug|Win32.Build.0 = Debug|Win32 16 | {D9AD600B-C5D1-43BB-9050-24962632E450}.Release|Win32.ActiveCfg = Release|Win32 17 | {D9AD600B-C5D1-43BB-9050-24962632E450}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /堆排序/堆排序/堆排序.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {D9AD600B-C5D1-43BB-9050-24962632E450} 15 | 堆排序 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /堆排序/堆排序/堆排序.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /堆排序/堆排序/源.cpp: -------------------------------------------------------------------------------- 1 | void Swap(int* a, int* b) 2 | { 3 | int tmp = *a; 4 | *a = *b; 5 | *b = tmp; 6 | } 7 | void Adjustdown(int* a, int size, int root) 8 | { 9 | int parent = root; 10 | int child = 2 * parent + 1; 11 | while (child < size) 12 | { 13 | if (a[child] < a[child + 1] && child + 1 < size) 14 | { 15 | child = child + 1; 16 | } 17 | if (a[parent] < a[child]) 18 | { 19 | Swap(&a[parent], &a[child]); 20 | 21 | parent = child; 22 | child = 2 * parent + 1; 23 | } 24 | else 25 | { 26 | break; 27 | } 28 | } 29 | } 30 | void HeapSort(int* a, int n) 31 | { 32 | for (int i = ((n - 2) / 2); i >= 0; i--) 33 | { 34 | Adjustdown(a, n, i); 35 | } 36 | int end = n - 1; 37 | while (end > 0) 38 | { 39 | Swap(&a[0], &a[end]); 40 | Adjustdown(a, end, 0); 41 | --end; 42 | } 43 | } -------------------------------------------------------------------------------- /多态/多态.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "多态", "多态\多态.vcxproj", "{9A16B745-360F-4C81-9369-6482E34768B9}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {9A16B745-360F-4C81-9369-6482E34768B9}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {9A16B745-360F-4C81-9369-6482E34768B9}.Debug|Win32.Build.0 = Debug|Win32 16 | {9A16B745-360F-4C81-9369-6482E34768B9}.Release|Win32.ActiveCfg = Release|Win32 17 | {9A16B745-360F-4C81-9369-6482E34768B9}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /多态/多态/多态.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | 15 | 16 | 17 | {9A16B745-360F-4C81-9369-6482E34768B9} 18 | 多态 19 | 20 | 21 | 22 | Application 23 | true 24 | v120 25 | Unicode 26 | 27 | 28 | Application 29 | false 30 | v120 31 | true 32 | Unicode 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | Level3 48 | Disabled 49 | true 50 | 51 | 52 | true 53 | 54 | 55 | 56 | 57 | Level3 58 | MaxSpeed 59 | true 60 | true 61 | true 62 | 63 | 64 | true 65 | true 66 | true 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /多态/多态/多态.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /多态/多态/源.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/多态/多态/源.cpp -------------------------------------------------------------------------------- /多线程交叉打印/多线程交叉打印.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "多线程交叉打印", "多线程交叉打印\多线程交叉打印.vcxproj", "{DBEED025-D3DF-4036-8066-B9E1CA1009EA}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {DBEED025-D3DF-4036-8066-B9E1CA1009EA}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {DBEED025-D3DF-4036-8066-B9E1CA1009EA}.Debug|Win32.Build.0 = Debug|Win32 16 | {DBEED025-D3DF-4036-8066-B9E1CA1009EA}.Release|Win32.ActiveCfg = Release|Win32 17 | {DBEED025-D3DF-4036-8066-B9E1CA1009EA}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /多线程交叉打印/多线程交叉打印/thread.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/多线程交叉打印/多线程交叉打印/thread.cpp -------------------------------------------------------------------------------- /多线程交叉打印/多线程交叉打印/多线程交叉打印.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /多阶哈希/多阶哈希.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "多阶哈希", "多阶哈希\多阶哈希.vcxproj", "{10026A05-06FE-4131-A4D3-33013128BB57}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {10026A05-06FE-4131-A4D3-33013128BB57}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {10026A05-06FE-4131-A4D3-33013128BB57}.Debug|Win32.Build.0 = Debug|Win32 16 | {10026A05-06FE-4131-A4D3-33013128BB57}.Release|Win32.ActiveCfg = Release|Win32 17 | {10026A05-06FE-4131-A4D3-33013128BB57}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /多阶哈希/多阶哈希/MorderHash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/多阶哈希/多阶哈希/MorderHash.h -------------------------------------------------------------------------------- /多阶哈希/多阶哈希/多阶哈希.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /字典树/字典树.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "字典树", "字典树\字典树.vcxproj", "{3E1AB7B6-4E98-416E-823F-00B1D1CAC19B}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {3E1AB7B6-4E98-416E-823F-00B1D1CAC19B}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {3E1AB7B6-4E98-416E-823F-00B1D1CAC19B}.Debug|Win32.Build.0 = Debug|Win32 16 | {3E1AB7B6-4E98-416E-823F-00B1D1CAC19B}.Release|Win32.ActiveCfg = Release|Win32 17 | {3E1AB7B6-4E98-416E-823F-00B1D1CAC19B}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /字典树/字典树/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/字典树/字典树/test.h -------------------------------------------------------------------------------- /字典树/字典树/字典树.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {3E1AB7B6-4E98-416E-823F-00B1D1CAC19B} 15 | 字典树 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /字典树/字典树/字典树.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /字符串oj1/字符串oj1.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "字符串oj1", "字符串oj1\字符串oj1.vcxproj", "{7D86DBC3-8CDC-4400-81EF-223D15726F25}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {7D86DBC3-8CDC-4400-81EF-223D15726F25}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {7D86DBC3-8CDC-4400-81EF-223D15726F25}.Debug|Win32.Build.0 = Debug|Win32 16 | {7D86DBC3-8CDC-4400-81EF-223D15726F25}.Release|Win32.ActiveCfg = Release|Win32 17 | {7D86DBC3-8CDC-4400-81EF-223D15726F25}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /字符串oj1/字符串oj1/字符串oj1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /字符串oj1/字符串oj1/源.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/字符串oj1/字符串oj1/源.cpp -------------------------------------------------------------------------------- /工厂模式/工厂模式.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "工厂模式", "工厂模式\工厂模式.vcxproj", "{8762BF23-14A1-47F3-8C70-534716C248B0}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {8762BF23-14A1-47F3-8C70-534716C248B0}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {8762BF23-14A1-47F3-8C70-534716C248B0}.Debug|Win32.Build.0 = Debug|Win32 16 | {8762BF23-14A1-47F3-8C70-534716C248B0}.Release|Win32.ActiveCfg = Release|Win32 17 | {8762BF23-14A1-47F3-8C70-534716C248B0}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /工厂模式/工厂模式/Factory1.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/工厂模式/工厂模式/Factory1.cpp -------------------------------------------------------------------------------- /工厂模式/工厂模式/Factory2.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | using namespace std; 5 | 6 | class product { 7 | public: 8 | virtual void show() = 0; 9 | }; 10 | 11 | class productA : public product{ 12 | public: 13 | virtual void show() 14 | { 15 | cout << "product A" << endl; 16 | } 17 | }; 18 | 19 | class productB : public product{ 20 | public: 21 | virtual void show() 22 | { 23 | cout << "product B" << endl; 24 | } 25 | }; 26 | 27 | 28 | class Factory{ 29 | public: 30 | virtual product* CreateObject() = 0; 31 | }; 32 | 33 | class FactoryA : public Factory{ 34 | public: 35 | virtual product* CreateObject() 36 | { 37 | return new productA(); 38 | } 39 | }; 40 | 41 | class FactoryB : public Factory{ 42 | public: 43 | virtual product* CreateObject() 44 | { 45 | return new productB(); 46 | } 47 | }; 48 | 49 | int main() 50 | { 51 | Factory* fya = new FactoryA(); 52 | product* Fa = fya->CreateObject(); 53 | Fa->show(); 54 | 55 | Factory* fyb = new FactoryB(); 56 | product* Fb = fyb->CreateObject(); 57 | Fb->show(); 58 | int a = 1; 59 | a = a&(-a); 60 | cout << a << endl; 61 | 62 | system("pause"); 63 | return 0; 64 | } -------------------------------------------------------------------------------- /工厂模式/工厂模式/Factory3.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/工厂模式/工厂模式/Factory3.cpp -------------------------------------------------------------------------------- /工厂模式/工厂模式/工厂模式.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | 源文件 23 | 24 | 25 | 源文件 26 | 27 | 28 | -------------------------------------------------------------------------------- /布隆过滤器/布隆过滤器.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "布隆过滤器", "布隆过滤器\布隆过滤器.vcxproj", "{4E6886D7-927F-414B-A68D-B04DD4F58459}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {4E6886D7-927F-414B-A68D-B04DD4F58459}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {4E6886D7-927F-414B-A68D-B04DD4F58459}.Debug|Win32.Build.0 = Debug|Win32 16 | {4E6886D7-927F-414B-A68D-B04DD4F58459}.Release|Win32.ActiveCfg = Release|Win32 17 | {4E6886D7-927F-414B-A68D-B04DD4F58459}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /布隆过滤器/布隆过滤器/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/布隆过滤器/布隆过滤器/test.h -------------------------------------------------------------------------------- /布隆过滤器/布隆过滤器/布隆过滤器.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {4E6886D7-927F-414B-A68D-B04DD4F58459} 15 | 布隆过滤器 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /布隆过滤器/布隆过滤器/布隆过滤器.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /并查集/并查集.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "并查集", "并查集\并查集.vcxproj", "{C4FC23F5-3F16-46C5-A8A8-EDBA627C92AF}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {C4FC23F5-3F16-46C5-A8A8-EDBA627C92AF}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {C4FC23F5-3F16-46C5-A8A8-EDBA627C92AF}.Debug|Win32.Build.0 = Debug|Win32 16 | {C4FC23F5-3F16-46C5-A8A8-EDBA627C92AF}.Release|Win32.ActiveCfg = Release|Win32 17 | {C4FC23F5-3F16-46C5-A8A8-EDBA627C92AF}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /并查集/并查集/test.cpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | using namespace std; 4 | 5 | class UnionSet 6 | { 7 | public: 8 | UnionSet(int size) 9 | { 10 | uset.resize(size, -1); 11 | } 12 | int FindRoot(int x) 13 | { 14 | while (uset[x] >= 0) 15 | { 16 | x = uset[x]; 17 | } 18 | return x; 19 | } 20 | bool Union(int x1, int x2) 21 | { 22 | int root1 = FindRoot(x1); 23 | int root2 = FindRoot(x2); 24 | if (root1 == root2) 25 | return false; 26 | 27 | uset[root1] += uset[root2]; 28 | uset[root2] = root1; 29 | return true; 30 | } 31 | size_t Count()const 32 | { 33 | size_t count = 0; 34 | for (auto e : uset) 35 | { 36 | if (e < 0) 37 | ++count; 38 | } 39 | return count; 40 | } 41 | private: 42 | vector uset; 43 | }; -------------------------------------------------------------------------------- /并查集/并查集/并查集.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {C4FC23F5-3F16-46C5-A8A8-EDBA627C92AF} 15 | 并查集 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /并查集/并查集/并查集.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /异常/异常.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "异常", "异常\异常.vcxproj", "{5C00343E-00F5-4761-B362-6BE028895FE3}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {5C00343E-00F5-4761-B362-6BE028895FE3}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {5C00343E-00F5-4761-B362-6BE028895FE3}.Debug|Win32.Build.0 = Debug|Win32 16 | {5C00343E-00F5-4761-B362-6BE028895FE3}.Release|Win32.ActiveCfg = Release|Win32 17 | {5C00343E-00F5-4761-B362-6BE028895FE3}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /异常/异常/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/异常/异常/test.cpp -------------------------------------------------------------------------------- /异常/异常/异常.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {5C00343E-00F5-4761-B362-6BE028895FE3} 15 | 异常 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /异常/异常/异常.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /归并排序/归并排序.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "归并排序", "归并排序\归并排序.vcxproj", "{79CE3BF9-6FC3-44A2-9E7E-2B2DEFEDF0E1}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {79CE3BF9-6FC3-44A2-9E7E-2B2DEFEDF0E1}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {79CE3BF9-6FC3-44A2-9E7E-2B2DEFEDF0E1}.Debug|Win32.Build.0 = Debug|Win32 16 | {79CE3BF9-6FC3-44A2-9E7E-2B2DEFEDF0E1}.Release|Win32.ActiveCfg = Release|Win32 17 | {79CE3BF9-6FC3-44A2-9E7E-2B2DEFEDF0E1}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /归并排序/归并排序/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/归并排序/归并排序/test.cpp -------------------------------------------------------------------------------- /归并排序/归并排序/归并排序.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {79CE3BF9-6FC3-44A2-9E7E-2B2DEFEDF0E1} 15 | 归并排序 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /归并排序/归并排序/归并排序.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /快速排序/快速排序.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "快速排序", "快速排序\快速排序.vcxproj", "{F76353E8-40EA-4245-8006-3C9D87A5F823}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {F76353E8-40EA-4245-8006-3C9D87A5F823}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {F76353E8-40EA-4245-8006-3C9D87A5F823}.Debug|Win32.Build.0 = Debug|Win32 16 | {F76353E8-40EA-4245-8006-3C9D87A5F823}.Release|Win32.ActiveCfg = Release|Win32 17 | {F76353E8-40EA-4245-8006-3C9D87A5F823}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /快速排序/快速排序/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/快速排序/快速排序/test.cpp -------------------------------------------------------------------------------- /快速排序/快速排序/快速排序.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {F76353E8-40EA-4245-8006-3C9D87A5F823} 15 | 快速排序 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /快速排序/快速排序/快速排序.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /插入排序/插入排序.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "插入排序", "插入排序\插入排序.vcxproj", "{B591E556-B7D9-4EAC-9FE9-73D189960FAF}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {B591E556-B7D9-4EAC-9FE9-73D189960FAF}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {B591E556-B7D9-4EAC-9FE9-73D189960FAF}.Debug|Win32.Build.0 = Debug|Win32 16 | {B591E556-B7D9-4EAC-9FE9-73D189960FAF}.Release|Win32.ActiveCfg = Release|Win32 17 | {B591E556-B7D9-4EAC-9FE9-73D189960FAF}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /插入排序/插入排序/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/插入排序/插入排序/test.cpp -------------------------------------------------------------------------------- /插入排序/插入排序/插入排序.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {B591E556-B7D9-4EAC-9FE9-73D189960FAF} 15 | 插入排序 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /插入排序/插入排序/插入排序.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /数据的存储/数据的存储.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "数据的存储", "数据的存储\数据的存储.vcxproj", "{9614414E-454A-4D3E-B781-500897022CA5}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {9614414E-454A-4D3E-B781-500897022CA5}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {9614414E-454A-4D3E-B781-500897022CA5}.Debug|Win32.Build.0 = Debug|Win32 16 | {9614414E-454A-4D3E-B781-500897022CA5}.Release|Win32.ActiveCfg = Release|Win32 17 | {9614414E-454A-4D3E-B781-500897022CA5}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /数据的存储/数据的存储/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/数据的存储/数据的存储/test.cpp -------------------------------------------------------------------------------- /数据的存储/数据的存储/数据的存储.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /无锁队列/无锁队列.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "无锁队列", "无锁队列\无锁队列.vcxproj", "{E1A31C09-19B2-4069-A4CE-8ADEFBE3CDF0}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {E1A31C09-19B2-4069-A4CE-8ADEFBE3CDF0}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {E1A31C09-19B2-4069-A4CE-8ADEFBE3CDF0}.Debug|Win32.Build.0 = Debug|Win32 16 | {E1A31C09-19B2-4069-A4CE-8ADEFBE3CDF0}.Release|Win32.ActiveCfg = Release|Win32 17 | {E1A31C09-19B2-4069-A4CE-8ADEFBE3CDF0}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /无锁队列/无锁队列/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/无锁队列/无锁队列/test.cpp -------------------------------------------------------------------------------- /无锁队列/无锁队列/无锁队列.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {E1A31C09-19B2-4069-A4CE-8ADEFBE3CDF0} 15 | 无锁队列 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /无锁队列/无锁队列/无锁队列.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /日期类/Debug/日期类.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/Debug/日期类.exe -------------------------------------------------------------------------------- /日期类/Debug/日期类.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/Debug/日期类.ilk -------------------------------------------------------------------------------- /日期类/Debug/日期类.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/Debug/日期类.pdb -------------------------------------------------------------------------------- /日期类/日期类.sdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/日期类.sdf -------------------------------------------------------------------------------- /日期类/日期类.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "日期类", "日期类\日期类.vcxproj", "{3CBCCA17-6C05-4B77-B504-1D4640135EEB}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {3CBCCA17-6C05-4B77-B504-1D4640135EEB}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {3CBCCA17-6C05-4B77-B504-1D4640135EEB}.Debug|Win32.Build.0 = Debug|Win32 16 | {3CBCCA17-6C05-4B77-B504-1D4640135EEB}.Release|Win32.ActiveCfg = Release|Win32 17 | {3CBCCA17-6C05-4B77-B504-1D4640135EEB}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /日期类/日期类.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/日期类.v12.suo -------------------------------------------------------------------------------- /日期类/日期类/Debug/date.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/日期类/Debug/date.obj -------------------------------------------------------------------------------- /日期类/日期类/Debug/vc120.idb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/日期类/Debug/vc120.idb -------------------------------------------------------------------------------- /日期类/日期类/Debug/vc120.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/日期类/Debug/vc120.pdb -------------------------------------------------------------------------------- /日期类/日期类/Debug/日期类.log: -------------------------------------------------------------------------------- 1 | 生成启动时间为 2019/1/15 19:25:58。 2 | 1>项目“F:\比特科技\-\日期类\日期类\日期类.vcxproj”在节点 2 上(Build 个目标)。 3 | 1>ClCompile: 4 | C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt date.cpp 5 | date.cpp 6 | Link: 7 | C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"F:\比特科技\-\日期类\Debug\日期类.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"F:\比特科技\-\日期类\Debug\日期类.pdb" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"F:\比特科技\-\日期类\Debug\日期类.lib" /MACHINE:X86 Debug\date.obj 8 | 日期类.vcxproj -> F:\比特科技\-\日期类\Debug\日期类.exe 9 | 1>已完成生成项目“F:\比特科技\-\日期类\日期类\日期类.vcxproj”(Build 个目标)的操作。 10 | 11 | 生成成功。 12 | 13 | 已用时间 00:00:01.58 14 | -------------------------------------------------------------------------------- /日期类/日期类/Debug/日期类.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/日期类/Debug/日期类.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /日期类/日期类/Debug/日期类.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/日期类/Debug/日期类.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /日期类/日期类/Debug/日期类.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/日期类/Debug/日期类.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /日期类/日期类/Debug/日期类.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/日期类/Debug/日期类.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /日期类/日期类/Debug/日期类.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/日期类/Debug/日期类.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /日期类/日期类/Debug/日期类.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/日期类/Debug/日期类.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /日期类/日期类/Debug/日期类.tlog/日期类.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|F:\比特科技\-\日期类\| 3 | -------------------------------------------------------------------------------- /日期类/日期类/date.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类/日期类/date.cpp -------------------------------------------------------------------------------- /日期类/日期类/日期类.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {3CBCCA17-6C05-4B77-B504-1D4640135EEB} 15 | 日期类 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /日期类/日期类/日期类.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /日期类(修改)/日期类(修改).sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "日期类(修改)", "日期类(修改)\日期类(修改).vcxproj", "{FF920B5D-E5CA-4C08-8875-806B5815B3D0}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {FF920B5D-E5CA-4C08-8875-806B5815B3D0}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {FF920B5D-E5CA-4C08-8875-806B5815B3D0}.Debug|Win32.Build.0 = Debug|Win32 16 | {FF920B5D-E5CA-4C08-8875-806B5815B3D0}.Release|Win32.ActiveCfg = Release|Win32 17 | {FF920B5D-E5CA-4C08-8875-806B5815B3D0}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /日期类(修改)/日期类(修改)/Date.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/日期类(修改)/日期类(修改)/Date.cpp -------------------------------------------------------------------------------- /日期类(修改)/日期类(修改)/日期类(修改).vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /智能指针1/智能指针1.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "智能指针1", "智能指针1\智能指针1.vcxproj", "{329689EB-D0E6-4AAA-A1DE-A8B37F794BEE}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {329689EB-D0E6-4AAA-A1DE-A8B37F794BEE}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {329689EB-D0E6-4AAA-A1DE-A8B37F794BEE}.Debug|Win32.Build.0 = Debug|Win32 16 | {329689EB-D0E6-4AAA-A1DE-A8B37F794BEE}.Release|Win32.ActiveCfg = Release|Win32 17 | {329689EB-D0E6-4AAA-A1DE-A8B37F794BEE}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /智能指针1/智能指针1/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/智能指针1/智能指针1/test.cpp -------------------------------------------------------------------------------- /智能指针1/智能指针1/智能指针1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /智能指针(上)/智能指针(上).sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "智能指针(上)", "智能指针(上)\智能指针(上).vcxproj", "{1C3D5895-FA79-41A2-B72E-C27D1969DB98}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {1C3D5895-FA79-41A2-B72E-C27D1969DB98}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {1C3D5895-FA79-41A2-B72E-C27D1969DB98}.Debug|Win32.Build.0 = Debug|Win32 16 | {1C3D5895-FA79-41A2-B72E-C27D1969DB98}.Release|Win32.ActiveCfg = Release|Win32 17 | {1C3D5895-FA79-41A2-B72E-C27D1969DB98}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /智能指针(上)/智能指针(上)/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/智能指针(上)/智能指针(上)/test.cpp -------------------------------------------------------------------------------- /智能指针(上)/智能指针(上)/智能指针(上).vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /杨辉三角/杨辉三角.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "杨辉三角", "杨辉三角\杨辉三角.vcxproj", "{13A54233-A73D-453A-8F8E-77922FF329CF}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {13A54233-A73D-453A-8F8E-77922FF329CF}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {13A54233-A73D-453A-8F8E-77922FF329CF}.Debug|Win32.Build.0 = Debug|Win32 16 | {13A54233-A73D-453A-8F8E-77922FF329CF}.Release|Win32.ActiveCfg = Release|Win32 17 | {13A54233-A73D-453A-8F8E-77922FF329CF}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /杨辉三角/杨辉三角/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/杨辉三角/杨辉三角/test.cpp -------------------------------------------------------------------------------- /杨辉三角/杨辉三角/杨辉三角.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {13A54233-A73D-453A-8F8E-77922FF329CF} 15 | 杨辉三角 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /杨辉三角/杨辉三角/杨辉三角.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /模拟pirority_queue/模拟pirority_queue.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "模拟pirority_queue", "模拟pirority_queue\模拟pirority_queue.vcxproj", "{9D9D433F-9BC6-4558-BA39-9681FF0DAC01}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {9D9D433F-9BC6-4558-BA39-9681FF0DAC01}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {9D9D433F-9BC6-4558-BA39-9681FF0DAC01}.Debug|Win32.Build.0 = Debug|Win32 16 | {9D9D433F-9BC6-4558-BA39-9681FF0DAC01}.Release|Win32.ActiveCfg = Release|Win32 17 | {9D9D433F-9BC6-4558-BA39-9681FF0DAC01}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /模拟pirority_queue/模拟pirority_queue/pitority_queue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/模拟pirority_queue/模拟pirority_queue/pitority_queue.h -------------------------------------------------------------------------------- /模拟pirority_queue/模拟pirority_queue/test.cpp: -------------------------------------------------------------------------------- 1 | #include"pitority_queue.h" 2 | 3 | int main() 4 | { 5 | TestQueue(); 6 | system("pause"); 7 | return 0; 8 | } -------------------------------------------------------------------------------- /模拟pirority_queue/模拟pirority_queue/模拟pirority_queue.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | 23 | 24 | 头文件 25 | 26 | 27 | -------------------------------------------------------------------------------- /模拟string/模拟string.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "模拟string", "模拟string\模拟string.vcxproj", "{62394E6A-78EB-4173-8E18-0729479C3061}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {62394E6A-78EB-4173-8E18-0729479C3061}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {62394E6A-78EB-4173-8E18-0729479C3061}.Debug|Win32.Build.0 = Debug|Win32 16 | {62394E6A-78EB-4173-8E18-0729479C3061}.Release|Win32.ActiveCfg = Release|Win32 17 | {62394E6A-78EB-4173-8E18-0729479C3061}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /模拟string/模拟string/string.cpp: -------------------------------------------------------------------------------- 1 | #include"string.h" 2 | 3 | int main() 4 | { 5 | lcx::test1(); 6 | 7 | system("pause"); 8 | return 0; 9 | } -------------------------------------------------------------------------------- /模拟string/模拟string/string.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/模拟string/模拟string/string.h -------------------------------------------------------------------------------- /模拟string/模拟string/模拟string.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 头文件 20 | 21 | 22 | 23 | 24 | 源文件 25 | 26 | 27 | -------------------------------------------------------------------------------- /模拟vector/模拟vector.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "模拟vector", "模拟vector\模拟vector.vcxproj", "{35B5B701-A372-483A-BEB4-7847593D15E7}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {35B5B701-A372-483A-BEB4-7847593D15E7}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {35B5B701-A372-483A-BEB4-7847593D15E7}.Debug|Win32.Build.0 = Debug|Win32 16 | {35B5B701-A372-483A-BEB4-7847593D15E7}.Release|Win32.ActiveCfg = Release|Win32 17 | {35B5B701-A372-483A-BEB4-7847593D15E7}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /模拟vector/模拟vector/test.cpp: -------------------------------------------------------------------------------- 1 | #include"test.h" 2 | 3 | int main() 4 | { 5 | lcx::test1(); 6 | /*vector v; 7 | v.reserve(12); 8 | v.push_back(1); 9 | v.push_back(1); 10 | v.push_back(1); 11 | v.push_back(1); 12 | cout << v.capacity() << endl; 13 | for (auto e : v) 14 | { 15 | cout << e <<" "; 16 | } 17 | cout << endl; 18 | 19 | v.resize(10,2); 20 | cout << v.capacity() << endl; 21 | for (auto e : v) 22 | { 23 | cout << e << " "; 24 | } 25 | cout << endl;*/ 26 | system("pause"); 27 | return 0; 28 | } -------------------------------------------------------------------------------- /模拟vector/模拟vector/模拟vector.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | 23 | 24 | 头文件 25 | 26 | 27 | -------------------------------------------------------------------------------- /模拟字符串库函数/模拟字符串库函数.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "模拟字符串库函数", "模拟字符串库函数\模拟字符串库函数.vcxproj", "{E8D235B9-6CD0-4110-8043-3238441F7B47}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {E8D235B9-6CD0-4110-8043-3238441F7B47}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {E8D235B9-6CD0-4110-8043-3238441F7B47}.Debug|Win32.Build.0 = Debug|Win32 16 | {E8D235B9-6CD0-4110-8043-3238441F7B47}.Release|Win32.ActiveCfg = Release|Win32 17 | {E8D235B9-6CD0-4110-8043-3238441F7B47}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /模拟字符串库函数/模拟字符串库函数/test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/模拟字符串库函数/模拟字符串库函数/test.c -------------------------------------------------------------------------------- /模拟字符串库函数/模拟字符串库函数/模拟字符串库函数.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /模拟实现list/模拟实现list.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "模拟实现list", "模拟实现list\模拟实现list.vcxproj", "{15288962-7985-49AB-BA83-64F52DB1A9BD}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {15288962-7985-49AB-BA83-64F52DB1A9BD}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {15288962-7985-49AB-BA83-64F52DB1A9BD}.Debug|Win32.Build.0 = Debug|Win32 16 | {15288962-7985-49AB-BA83-64F52DB1A9BD}.Release|Win32.ActiveCfg = Release|Win32 17 | {15288962-7985-49AB-BA83-64F52DB1A9BD}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /模拟实现list/模拟实现list/test.cpp: -------------------------------------------------------------------------------- 1 | #include"test.h" 2 | 3 | int main() 4 | { 5 | test1(); 6 | system("pause"); 7 | return 0; 8 | } -------------------------------------------------------------------------------- /模拟实现list/模拟实现list/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/模拟实现list/模拟实现list/test.h -------------------------------------------------------------------------------- /模拟实现list/模拟实现list/模拟实现list.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 头文件 20 | 21 | 22 | 23 | 24 | 源文件 25 | 26 | 27 | -------------------------------------------------------------------------------- /模拟实现优化版vector增容/模拟实现优化版vector增容.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "模拟实现优化版vector增容", "模拟实现优化版vector增容\模拟实现优化版vector增容.vcxproj", "{7954E7D5-9D50-4999-A152-4F3F7D65D89D}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {7954E7D5-9D50-4999-A152-4F3F7D65D89D}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {7954E7D5-9D50-4999-A152-4F3F7D65D89D}.Debug|Win32.Build.0 = Debug|Win32 16 | {7954E7D5-9D50-4999-A152-4F3F7D65D89D}.Release|Win32.ActiveCfg = Release|Win32 17 | {7954E7D5-9D50-4999-A152-4F3F7D65D89D}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /模拟实现优化版vector增容/模拟实现优化版vector增容/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/模拟实现优化版vector增容/模拟实现优化版vector增容/test.cpp -------------------------------------------------------------------------------- /模拟实现优化版vector增容/模拟实现优化版vector增容/模拟实现优化版vector增容.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /模拟实现无锁队列/模拟实现无锁队列.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "模拟实现无锁队列", "模拟实现无锁队列\模拟实现无锁队列.vcxproj", "{FDF56EE3-9C45-44BF-A771-5F93DF0F5F88}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {FDF56EE3-9C45-44BF-A771-5F93DF0F5F88}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {FDF56EE3-9C45-44BF-A771-5F93DF0F5F88}.Debug|Win32.Build.0 = Debug|Win32 16 | {FDF56EE3-9C45-44BF-A771-5F93DF0F5F88}.Release|Win32.ActiveCfg = Release|Win32 17 | {FDF56EE3-9C45-44BF-A771-5F93DF0F5F88}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /模拟实现无锁队列/模拟实现无锁队列/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/模拟实现无锁队列/模拟实现无锁队列/test.cpp -------------------------------------------------------------------------------- /模拟实现无锁队列/模拟实现无锁队列/模拟实现无锁队列.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /模板初阶/模板初阶.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "模板初阶", "模板初阶\模板初阶.vcxproj", "{40EAAD47-8229-4C2B-BB11-387B3D660F34}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {40EAAD47-8229-4C2B-BB11-387B3D660F34}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {40EAAD47-8229-4C2B-BB11-387B3D660F34}.Debug|Win32.Build.0 = Debug|Win32 16 | {40EAAD47-8229-4C2B-BB11-387B3D660F34}.Release|Win32.ActiveCfg = Release|Win32 17 | {40EAAD47-8229-4C2B-BB11-387B3D660F34}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /模板初阶/模板初阶/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/模板初阶/模板初阶/test.cpp -------------------------------------------------------------------------------- /模板初阶/模板初阶/模板初阶.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /类和对象1/Debug/类和对象1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/Debug/类和对象1.exe -------------------------------------------------------------------------------- /类和对象1/Debug/类和对象1.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/Debug/类和对象1.ilk -------------------------------------------------------------------------------- /类和对象1/Debug/类和对象1.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/Debug/类和对象1.pdb -------------------------------------------------------------------------------- /类和对象1/类和对象1.sdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/类和对象1.sdf -------------------------------------------------------------------------------- /类和对象1/类和对象1.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "类和对象1", "类和对象1\类和对象1.vcxproj", "{C45D41D9-17FD-4099-96EA-42BF7B0D0378}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {C45D41D9-17FD-4099-96EA-42BF7B0D0378}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {C45D41D9-17FD-4099-96EA-42BF7B0D0378}.Debug|Win32.Build.0 = Debug|Win32 16 | {C45D41D9-17FD-4099-96EA-42BF7B0D0378}.Release|Win32.ActiveCfg = Release|Win32 17 | {C45D41D9-17FD-4099-96EA-42BF7B0D0378}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /类和对象1/类和对象1.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/类和对象1.v12.suo -------------------------------------------------------------------------------- /类和对象1/类和对象1/Debug/test.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/类和对象1/Debug/test.obj -------------------------------------------------------------------------------- /类和对象1/类和对象1/Debug/vc120.idb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/类和对象1/Debug/vc120.idb -------------------------------------------------------------------------------- /类和对象1/类和对象1/Debug/vc120.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/类和对象1/Debug/vc120.pdb -------------------------------------------------------------------------------- /类和对象1/类和对象1/Debug/类和对象1.Build.CppClean.log: -------------------------------------------------------------------------------- 1 | f:\比特科技\-\类和对象1\类和对象1\debug\vc120.pdb 2 | f:\比特科技\-\类和对象1\类和对象1\debug\vc120.idb 3 | f:\比特科技\-\类和对象1\debug\类和对象1.ilk 4 | f:\比特科技\-\类和对象1\debug\类和对象1.exe 5 | f:\比特科技\-\类和对象1\debug\类和对象1.pdb 6 | f:\比特科技\-\类和对象1\类和对象1\debug\类和对象1.tlog\cl.command.1.tlog 7 | f:\比特科技\-\类和对象1\类和对象1\debug\类和对象1.tlog\cl.read.1.tlog 8 | f:\比特科技\-\类和对象1\类和对象1\debug\类和对象1.tlog\cl.write.1.tlog 9 | f:\比特科技\-\类和对象1\类和对象1\debug\类和对象1.tlog\link.command.1.tlog 10 | f:\比特科技\-\类和对象1\类和对象1\debug\类和对象1.tlog\link.read.1.tlog 11 | f:\比特科技\-\类和对象1\类和对象1\debug\类和对象1.tlog\link.write.1.tlog 12 | -------------------------------------------------------------------------------- /类和对象1/类和对象1/Debug/类和对象1.log: -------------------------------------------------------------------------------- 1 | 生成启动时间为 2019/1/15 16:12:13。 2 | 1>项目“F:\比特科技\-\类和对象1\类和对象1\类和对象1.vcxproj”在节点 2 上(Build 个目标)。 3 | 1>ClCompile: 4 | C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt test.cpp 5 | test.cpp 6 | Link: 7 | C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"F:\比特科技\-\类和对象1\Debug\类和对象1.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"F:\比特科技\-\类和对象1\Debug\类和对象1.pdb" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"F:\比特科技\-\类和对象1\Debug\类和对象1.lib" /MACHINE:X86 Debug\test.obj 8 | 类和对象1.vcxproj -> F:\比特科技\-\类和对象1\Debug\类和对象1.exe 9 | 1>已完成生成项目“F:\比特科技\-\类和对象1\类和对象1\类和对象1.vcxproj”(Build 个目标)的操作。 10 | 11 | 生成成功。 12 | 13 | 已用时间 00:00:01.34 14 | -------------------------------------------------------------------------------- /类和对象1/类和对象1/Debug/类和对象1.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/类和对象1/Debug/类和对象1.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /类和对象1/类和对象1/Debug/类和对象1.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/类和对象1/Debug/类和对象1.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /类和对象1/类和对象1/Debug/类和对象1.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/类和对象1/Debug/类和对象1.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /类和对象1/类和对象1/Debug/类和对象1.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/类和对象1/Debug/类和对象1.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /类和对象1/类和对象1/Debug/类和对象1.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/类和对象1/Debug/类和对象1.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /类和对象1/类和对象1/Debug/类和对象1.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/类和对象1/Debug/类和对象1.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /类和对象1/类和对象1/Debug/类和对象1.tlog/类和对象1.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|F:\比特科技\-\类和对象1\| 3 | -------------------------------------------------------------------------------- /类和对象1/类和对象1/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象1/类和对象1/test.cpp -------------------------------------------------------------------------------- /类和对象1/类和对象1/类和对象1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /类和对象2/类和对象2.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "类和对象2", "类和对象2\类和对象2.vcxproj", "{5C495833-3540-4BD0-B468-FEF7BBC6E96C}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {5C495833-3540-4BD0-B468-FEF7BBC6E96C}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {5C495833-3540-4BD0-B468-FEF7BBC6E96C}.Debug|Win32.Build.0 = Debug|Win32 16 | {5C495833-3540-4BD0-B468-FEF7BBC6E96C}.Release|Win32.ActiveCfg = Release|Win32 17 | {5C495833-3540-4BD0-B468-FEF7BBC6E96C}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /类和对象2/类和对象2/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类和对象2/类和对象2/test.cpp -------------------------------------------------------------------------------- /类和对象2/类和对象2/类和对象2.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /类型萃取/类型萃取.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "类型萃取", "类型萃取\类型萃取.vcxproj", "{596BD16E-12B0-4AAC-B6A7-600132FB20DC}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {596BD16E-12B0-4AAC-B6A7-600132FB20DC}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {596BD16E-12B0-4AAC-B6A7-600132FB20DC}.Debug|Win32.Build.0 = Debug|Win32 16 | {596BD16E-12B0-4AAC-B6A7-600132FB20DC}.Release|Win32.ActiveCfg = Release|Win32 17 | {596BD16E-12B0-4AAC-B6A7-600132FB20DC}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /类型萃取/类型萃取/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/类型萃取/类型萃取/test.cpp -------------------------------------------------------------------------------- /类型萃取/类型萃取/类型萃取.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /红黑树模拟实现/红黑树模拟实现.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "红黑树模拟实现", "红黑树模拟实现\红黑树模拟实现.vcxproj", "{C9829B4C-85D8-44A8-939A-F57549A46475}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {C9829B4C-85D8-44A8-939A-F57549A46475}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {C9829B4C-85D8-44A8-939A-F57549A46475}.Debug|Win32.Build.0 = Debug|Win32 16 | {C9829B4C-85D8-44A8-939A-F57549A46475}.Release|Win32.ActiveCfg = Release|Win32 17 | {C9829B4C-85D8-44A8-939A-F57549A46475}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /红黑树模拟实现/红黑树模拟实现/mymap.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | template 4 | class MyMap 5 | { 6 | typedef pair ValueType; 7 | public: 8 | struct MapKeyOfValue 9 | { 10 | const K& operator()(const ValueType& kv) 11 | { 12 | return kv.first; 13 | } 14 | }; 15 | 16 | typedef typename RBTree::iterator iterator; 17 | 18 | pair Insert(const ValueType& key) 19 | { 20 | return t.Insert(key); 21 | } 22 | 23 | V& operator[](const K& key) 24 | { 25 | pair ret = t.Insert(make_pair(key,V())); 26 | return ret.first->second; 27 | } 28 | 29 | iterator begin() 30 | { 31 | return t.begin(); 32 | } 33 | 34 | iterator end() 35 | { 36 | return t.end(); 37 | } 38 | private: 39 | RBTree t; 40 | }; 41 | 42 | void test_mymap() 43 | { 44 | MyMap m; 45 | m.Insert(make_pair("123", 1)); 46 | m.Insert(make_pair("124", 1)); 47 | m.Insert(make_pair("125", 1)); 48 | 49 | auto it = m.begin(); 50 | while (it != m.end()) 51 | { 52 | cout << it->first << " "; 53 | ++it; 54 | } 55 | cout << endl; 56 | } -------------------------------------------------------------------------------- /红黑树模拟实现/红黑树模拟实现/myset.h: -------------------------------------------------------------------------------- 1 | 2 | template 3 | class MySet 4 | { 5 | public: 6 | typedef K ValueType; 7 | struct SetKeyOfValue 8 | { 9 | const K& operator()(const ValueType& key) 10 | { 11 | return key; 12 | } 13 | }; 14 | 15 | typedef typename RBTree::iterator iterator; 16 | 17 | pair Insert(const ValueType& key) 18 | { 19 | return t.Insert(key); 20 | } 21 | 22 | iterator begin() 23 | { 24 | return t.begin(); 25 | } 26 | 27 | iterator end() 28 | { 29 | return t.end(); 30 | } 31 | 32 | private: 33 | RBTree t; 34 | }; 35 | 36 | void test_myset() 37 | { 38 | MySet s; 39 | s.Insert(1); 40 | s.Insert(2); 41 | s.Insert(3); 42 | 43 | auto it = s.begin(); 44 | while (it != s.end()) 45 | { 46 | cout << *it << " "; 47 | ++it; 48 | } 49 | cout << endl; 50 | } -------------------------------------------------------------------------------- /红黑树模拟实现/红黑树模拟实现/test.cpp: -------------------------------------------------------------------------------- 1 | #include "test.h" 2 | #include"myset.h" 3 | #include"mymap.h" 4 | 5 | 6 | int main() 7 | { 8 | //test_myset(); 9 | test_mymap(); 10 | system("pause"); 11 | return 0; 12 | } -------------------------------------------------------------------------------- /红黑树模拟实现/红黑树模拟实现/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/红黑树模拟实现/红黑树模拟实现/test.h -------------------------------------------------------------------------------- /红黑树模拟实现/红黑树模拟实现/红黑树模拟实现.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | 23 | 24 | 头文件 25 | 26 | 27 | 源文件 28 | 29 | 30 | 源文件 31 | 32 | 33 | -------------------------------------------------------------------------------- /线程池/线程池.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "线程池", "线程池\线程池.vcxproj", "{2B8D380C-BFE7-4A21-9259-B6ECC1E0B8ED}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {2B8D380C-BFE7-4A21-9259-B6ECC1E0B8ED}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {2B8D380C-BFE7-4A21-9259-B6ECC1E0B8ED}.Debug|Win32.Build.0 = Debug|Win32 16 | {2B8D380C-BFE7-4A21-9259-B6ECC1E0B8ED}.Release|Win32.ActiveCfg = Release|Win32 17 | {2B8D380C-BFE7-4A21-9259-B6ECC1E0B8ED}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /线程池/线程池/tpool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/线程池/线程池/tpool.cpp -------------------------------------------------------------------------------- /线程池/线程池/线程池.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {2B8D380C-BFE7-4A21-9259-B6ECC1E0B8ED} 15 | 线程池 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /线程池/线程池/线程池.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /继承/继承.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "继承", "继承\继承.vcxproj", "{98C2DB7A-9892-4078-ABAE-43E8D5830265}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {98C2DB7A-9892-4078-ABAE-43E8D5830265}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {98C2DB7A-9892-4078-ABAE-43E8D5830265}.Debug|Win32.Build.0 = Debug|Win32 16 | {98C2DB7A-9892-4078-ABAE-43E8D5830265}.Release|Win32.ActiveCfg = Release|Win32 17 | {98C2DB7A-9892-4078-ABAE-43E8D5830265}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /继承/继承/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/继承/继承/test.cpp -------------------------------------------------------------------------------- /继承/继承/继承.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {98C2DB7A-9892-4078-ABAE-43E8D5830265} 15 | 继承 16 | 17 | 18 | 19 | Application 20 | true 21 | v120 22 | Unicode 23 | 24 | 25 | Application 26 | false 27 | v120 28 | true 29 | Unicode 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Level3 45 | Disabled 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | Level3 55 | MaxSpeed 56 | true 57 | true 58 | true 59 | 60 | 61 | true 62 | true 63 | true 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /继承/继承/继承.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /闭散列/闭散列.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "闭散列", "闭散列\闭散列.vcxproj", "{89464A4F-19CF-4A1A-807A-DAE9462AD61A}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {89464A4F-19CF-4A1A-807A-DAE9462AD61A}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {89464A4F-19CF-4A1A-807A-DAE9462AD61A}.Debug|Win32.Build.0 = Debug|Win32 16 | {89464A4F-19CF-4A1A-807A-DAE9462AD61A}.Release|Win32.ActiveCfg = Release|Win32 17 | {89464A4F-19CF-4A1A-807A-DAE9462AD61A}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /闭散列/闭散列/test.cpp: -------------------------------------------------------------------------------- 1 | #include"test.h" 2 | #include 3 | 4 | int main() 5 | { 6 | test(); 7 | system("pause"); 8 | return 0; 9 | } -------------------------------------------------------------------------------- /闭散列/闭散列/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/闭散列/闭散列/test.h -------------------------------------------------------------------------------- /闭散列/闭散列/闭散列.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | 23 | 24 | 头文件 25 | 26 | 27 | -------------------------------------------------------------------------------- /顺序表oj/顺序表oj.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "顺序表oj", "顺序表oj\顺序表oj.vcxproj", "{6F1EC331-8C5F-4F61-B709-A5349F5F3630}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {6F1EC331-8C5F-4F61-B709-A5349F5F3630}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {6F1EC331-8C5F-4F61-B709-A5349F5F3630}.Debug|Win32.Build.0 = Debug|Win32 16 | {6F1EC331-8C5F-4F61-B709-A5349F5F3630}.Release|Win32.ActiveCfg = Release|Win32 17 | {6F1EC331-8C5F-4F61-B709-A5349F5F3630}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /顺序表oj/顺序表oj/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/顺序表oj/顺序表oj/test.cpp -------------------------------------------------------------------------------- /顺序表oj/顺序表oj/顺序表oj.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /顺序表oj2/顺序表oj2.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "顺序表oj2", "顺序表oj2\顺序表oj2.vcxproj", "{54FD532F-CA43-450D-8465-E0FFA739F2E4}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {54FD532F-CA43-450D-8465-E0FFA739F2E4}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {54FD532F-CA43-450D-8465-E0FFA739F2E4}.Debug|Win32.Build.0 = Debug|Win32 16 | {54FD532F-CA43-450D-8465-E0FFA739F2E4}.Release|Win32.ActiveCfg = Release|Win32 17 | {54FD532F-CA43-450D-8465-E0FFA739F2E4}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /顺序表oj2/顺序表oj2/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucky529/Cpp_code/74d23ae497b80d28d5048789d9d3e5ddc4e96218/顺序表oj2/顺序表oj2/test.cpp -------------------------------------------------------------------------------- /顺序表oj2/顺序表oj2/顺序表oj2.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | --------------------------------------------------------------------------------