随笔分类 - 重学C++
摘要:课程完结✿✿ヽ(°▽°)ノ✿ globalFile.h 1 #pragma once 2 3 4 5 //管理员文件 6 #define ADMIN_FILE "admin.txt" 7 8 //学生文件 9 #define STUDENT_FILE "student.txt" 10 11 //教师
阅读全文
摘要:SpeechContest.cpp 1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include "speechManager.h" 5 #include<map> 6 #include "speaker.h"
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<vector> 5 #include<algorithm> 6 7 8 /* 9 5.6 常用集合算法 10 11 5.6.1 set_interse
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<vector> 5 #include<numeric> 6 #include<algorithm> 7 8 9 /* 10 5.5 常用算术生成算法
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<algorithm> 5 #include<vector> 6 7 8 /* 9 5.4.2 replace 10 将容器内指定范围的旧元素修改为新元
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<algorithm> 5 #include<vector> 6 7 8 /* 9 5.4 常用拷贝和替换算法 10 copy // 容器内指定范围的元
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<algorithm> 5 #include<vector> 6 7 8 /* 9 5.3.3 merge 10 两个容器元素合并,并存储到另一容器中
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<algorithm> 5 #include<vector> 6 #include<functional> 7 #include<ctime> 8 9
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<vector> 5 #include<algorithm> 6 #include<string> 7 8 9 /* 10 5.2.6 count_if
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<vector> 5 #include<algorithm> 6 #include<string> 7 8 9 /* 10 5.2.5 count 11
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<vector> 5 #include<algorithm> 6 #include<string> 7 8 9 /* 10 5.2.3 adjacent
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<vector> 5 #include<algorithm> 6 #include<string> 7 8 9 /* 10 5.2.2 find_if
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<vector> 5 #include<algorithm> 6 #include<string> 7 8 9 /* 10 5.2 常用查找算法 11
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<vector> 5 #include<algorithm> 6 7 8 /* 9 5 STL常用算法 10 11 算法主要是由头文件<algorith
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<functional> 5 #include<vector> 6 #include<algorithm> 7 8 9 /* 10 4.3 内建函数对象
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<vector> 5 #include<algorithm> 6 7 8 /* 9 4.2 谓词 10 11 4.2.1 谓词概念 12 返回bool类
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<string> 5 6 7 /* 8 4.1 函数对象 9 10 4.1.1 函数对象概念 11 12 概念: 13 重载函数调用操作符的类,其对象常
阅读全文
摘要:#include<iostream> #include<cstdlib> using namespace std; #include<vector> #include<string> #include<map> #include<ctime> #define CEHUA 0 #define MEIS
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<map> 5 6 7 /* 8 3.9.5 map查找和统计 9 10 find(key); //查找key是否存在,若存在,返回该键的元素的迭代器;
阅读全文
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<map> 5 6 7 /* 8 3.9.3 map大小和交换 9 10 size(); //返回容器中元素的数目 11 empty(); //判断容器
阅读全文