上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 72 下一页

2018年11月17日

map

摘要: 1 map和set两种容器的底层结构都是红黑树,所以容器中不会出现相同的元素, 2 因此count()的结果只能为0和1,可以以此来判断键值元素是否存在 3 (当然也可以使用find()方法判断键值是否存在)。 4 拿map举例,find()方法返回值是一个迭代器, 5 成功返回迭代器指向要查找的元素,失败返回的迭代器指向end。 6 count()方法返回值是一个整数,1表示有这个... 阅读全文

posted @ 2018-11-17 11:01 cltt 阅读(175) 评论(0) 推荐(0)

次小生成树

摘要: 1 /* 2 最小生成树唯一吗,求出次小生成树 3 枚举每个非最小生成树里面的边, 4 加上该边后一定会形成环 5 最小生成树+该边-最小生成树在环中的最长边 6 */ 7 /* 8 #include 9 #include 10 #include 11 #include 12 #include 13 using namespace std; 14 #define ph... 阅读全文

posted @ 2018-11-17 10:53 cltt 阅读(154) 评论(0) 推荐(0)

set

摘要: 1 sets1; 2 multisets2; 3 int x; 4 for(int i=1;is; 3 int main() 4 { 5 for(int i=1;ise; 4 set::iterator it1,it2,it3; 5 int main() 6 { 7 for(int i=1;i<=5;i++){ ... 阅读全文

posted @ 2018-11-17 10:52 cltt 阅读(172) 评论(0) 推荐(0)

2018年11月15日

指针

摘要: 1 p:指针 2 p->num 和(*p).num 等价 阅读全文

posted @ 2018-11-15 22:45 cltt 阅读(204) 评论(0) 推荐(0)

引用

摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 typedef long long ll; 11 const int inf=0x3f3f3f3f; 12 t... 阅读全文

posted @ 2018-11-15 20:20 cltt 阅读(234) 评论(0) 推荐(0)

字符串函数

摘要: 1 #include 2 #include 3 #include 4 #include 5 #define f(x) x*x*x 6 using namespace std; 7 char s[10],p[10]; 8 int main() 9 { 10 scanf("%s%s",s,p); 11 /* 12 strcat(s,p); 13 ... 阅读全文

posted @ 2018-11-15 20:19 cltt 阅读(168) 评论(0) 推荐(0)

2018年11月12日

公钥和私钥

摘要: https://blog.csdn.net/magiclyj/article/details/71023762 阅读全文

posted @ 2018-11-12 09:14 cltt 阅读(122) 评论(0) 推荐(0)

2018年11月11日

函数

摘要: select left('hello',3); select ltrim(rtrim(' hello '));--前后都无空格 select substring ('hello',2,4); 阅读全文

posted @ 2018-11-11 21:06 cltt 阅读(120) 评论(0) 推荐(0)

2018年11月10日

基础小问题

摘要: 1.将数据放到表中,表在放到库中 2.一个数据库中可有多个表,每个表都有一个名字,用来表示自己。表明具有唯一性 3.表具有一些特性,这些特性定义了数据在表中如何存储 4.表由列组成,我们也成为字段,所有表都是由一个或多个列组成表中数据按行存储, 更改完my.ini (配置文件后需要重启服务器) my 阅读全文

posted @ 2018-11-10 17:05 cltt 阅读(183) 评论(0) 推荐(0)

2018年11月8日

基础

摘要: 1 #显示当前运行的端口 netstat -ano 阅读全文

posted @ 2018-11-08 17:35 cltt 阅读(155) 评论(0) 推荐(0)

上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 72 下一页

导航