上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: sort排序 #include <iostream> #include <algorithm> using namespace std; int main() { ios::sync_with_stdio(false); int N, M; cin >> N >> M; int* s = new i 阅读全文
posted @ 2020-09-28 23:04 幻想Elapse 阅读(69) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstring> using namespace std; int main() { char s[10000]; char res[10000]; cin >> s; int len = strlen(s); int pos = 0; w 阅读全文
posted @ 2020-09-28 16:26 幻想Elapse 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 参考 #include <iostream> #include <map> using namespace std; typedef long long int INT; int main() { ios::sync_with_stdio(false); INT n,a,b; INT sum = 0 阅读全文
posted @ 2020-09-27 17:24 幻想Elapse 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstdio> 3 using namespace std; 4 struct DOT 5 { 6 int x, y; 7 int type;//A1,B0 8 }; 9 int main() 10 { 11 int dot, ju 阅读全文
posted @ 2020-09-27 13:30 幻想Elapse 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <semaphore.h> 5 #include <unistd.h> 6 #include <time.h> 7 #include <sys/ty 阅读全文
posted @ 2020-08-11 18:35 幻想Elapse 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 目录: 实验一: 邻接表: 1 #include <iostream> 2 using namespace std; 3 const int MAX = 30; 4 typedef int SubType; 5 typedef bool WeightType; 6 struct Node//结点 7 阅读全文
posted @ 2020-07-12 16:45 幻想Elapse 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 定义函数指针模板: bool (*pf)(const string &, const string &); *pf两端的括号是必须的使用函数指针: 1 #include <iostream> 2 using namespace std; 3 int func(int a, int b) 4 { 5 阅读全文
posted @ 2020-06-25 00:07 幻想Elapse 阅读(139) 评论(0) 推荐(0) 编辑
摘要: const is irrelevent for nonreference parameters 对于非引用传参,复制形参时并不考虑形参是否为 const——函数操纵的只是副本,但在在函数里面,const和非const的形参是有区别的有 const 引用形参的函数与有非 const 引用形参的函数是不 阅读全文
posted @ 2020-06-24 12:25 幻想Elapse 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 构造函数是特殊的成员函数 在冒号和花括号之间的代码称为构造函数的初始化列表 如果没有为一个类显式定义任何构造函数,编译器将自动为这个类生成默认构造函数 const 成员函数不能修改调用该函数的对象,只能读取而不能修改调用它们的对象的数据成员why?const成员函数的this指针被隐含地修改为con 阅读全文
posted @ 2020-06-24 12:14 幻想Elapse 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 百度云资源: https://m.sosuopan.com/page/8 英文书: https://b-ok.as/ jiumo: https://www.jiumodiary.com/ GatesNotes https://www.gatesnotes.com/ 阅读全文
posted @ 2020-06-24 10:19 幻想Elapse 阅读(218) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页