随笔分类 -  重学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 //教师 阅读全文
posted @ 2021-05-15 11:11 yub4by 阅读(316) 评论(0) 推荐(1) 编辑
摘要:SpeechContest.cpp 1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include "speechManager.h" 5 #include<map> 6 #include "speaker.h" 阅读全文
posted @ 2021-05-15 11:05 yub4by 阅读(83) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-05-14 10:18 yub4by 阅读(55) 评论(0) 推荐(0) 编辑
摘要: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 常用算术生成算法 阅读全文
posted @ 2021-05-14 10:16 yub4by 阅读(54) 评论(0) 推荐(0) 编辑
摘要: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 将容器内指定范围的旧元素修改为新元 阅读全文
posted @ 2021-05-14 09:12 yub4by 阅读(96) 评论(0) 推荐(0) 编辑
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<algorithm> 5 #include<vector> 6 7 8 /* 9 5.4 常用拷贝和替换算法 10 copy // 容器内指定范围的元 阅读全文
posted @ 2021-05-14 09:11 yub4by 阅读(95) 评论(0) 推荐(0) 编辑
摘要: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 两个容器元素合并,并存储到另一容器中 阅读全文
posted @ 2021-05-14 09:10 yub4by 阅读(45) 评论(0) 推荐(0) 编辑
摘要:1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<algorithm> 5 #include<vector> 6 #include<functional> 7 #include<ctime> 8 9 阅读全文
posted @ 2021-05-14 09:09 yub4by 阅读(82) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-05-13 11:51 yub4by 阅读(65) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-05-13 11:50 yub4by 阅读(72) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-05-13 11:49 yub4by 阅读(43) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-05-13 11:48 yub4by 阅读(57) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-05-13 11:47 yub4by 阅读(64) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-05-12 20:26 yub4by 阅读(163) 评论(0) 推荐(0) 编辑
摘要: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 内建函数对象 阅读全文
posted @ 2021-05-12 19:48 yub4by 阅读(40) 评论(0) 推荐(0) 编辑
摘要: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类 阅读全文
posted @ 2021-05-12 19:47 yub4by 阅读(53) 评论(0) 推荐(0) 编辑
摘要: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 重载函数调用操作符的类,其对象常 阅读全文
posted @ 2021-05-12 19:46 yub4by 阅读(40) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdlib> using namespace std; #include<vector> #include<string> #include<map> #include<ctime> #define CEHUA 0 #define MEIS 阅读全文
posted @ 2021-05-12 16:03 yub4by 阅读(86) 评论(0) 推荐(0) 编辑
摘要: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是否存在,若存在,返回该键的元素的迭代器; 阅读全文
posted @ 2021-05-12 15:04 yub4by 阅读(148) 评论(0) 推荐(0) 编辑
摘要: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(); //判断容器 阅读全文
posted @ 2021-05-12 15:03 yub4by 阅读(160) 评论(0) 推荐(0) 编辑

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