摘要: 下面这段代码输出什么,说明原因。 参考答案: 解析:这是新手常会犯的错误写法,for range 循环的时候会 创建每个元素的副本,而不是元素的引用 ,所以 m[key] = &val 取的都是变量 val 的地址,所以最后 map 中的所有元素的值都是变量 val 的地址,因为最后 val 被赋值 阅读全文
posted @ 2019-08-31 19:21 Seekload 阅读(344) 评论(0) 推荐(0) 编辑
摘要: https://cnbin.github.io/blog/2016/02/20/http qing qiu , xiang ying , huan cun/ 阅读全文
posted @ 2017-05-23 07:20 Seekload 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 参考教程: https://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html 1、安装Samba yum install samba samba client samba swat 2、将/Users/chengguilu/summary/ 阅读全文
posted @ 2017-03-30 19:15 Seekload 阅读(161) 评论(0) 推荐(0) 编辑
摘要: $ svn co depth=empty file:///usr/local/svn/calc calc_new $ cd calc_new $ svn up readme.txt 其中,calc_new为checkout后的文件夹名,自己可以随意指定,执行svn co命令后,会得到一个名为calc 阅读全文
posted @ 2017-03-24 14:30 Seekload 阅读(1453) 评论(0) 推荐(0) 编辑
摘要: http://lq2419.blog.51cto.com/1365130/1167448 阅读全文
posted @ 2017-03-22 17:54 Seekload 阅读(97) 评论(0) 推荐(0) 编辑
摘要: $x = 5; echo $x; echo " "; // echo ++$x + $x; //6+6=12 $x=6 // echo ++$x + 5; //6+5=12 $x=6 // echo $x++ + 5; //5+5=10 $x=6 // echo $x++ + $x++; //5+6 阅读全文
posted @ 2017-03-21 13:40 Seekload 阅读(261) 评论(0) 推荐(0) 编辑
摘要: http://yansu.org/2014/03/20/php debug with xdebug.html 阅读全文
posted @ 2017-03-21 12:02 Seekload 阅读(122) 评论(0) 推荐(0) 编辑
摘要: http://xclient.info/ 阅读全文
posted @ 2017-03-20 11:56 Seekload 阅读(124) 评论(0) 推荐(0) 编辑
摘要: https://my.oschina.net/xianggao/blog/678644 http://www.cnblogs.com/ggjucheng/archive/2012/02/02/2335495.html http://www.jianshu.com/p/2461535c38f3 htt 阅读全文
posted @ 2017-03-19 21:18 Seekload 阅读(140) 评论(0) 推荐(0) 编辑
摘要: explain出的有下列几项: 1、select_type 2、type 1、all 全表扫描,从表头扫描到表尾; 2、index 根据索引来读取数据,如果索引已包含了查询数据,只需扫描索引树,否则执行全表扫描和All类似; 3、range 以范围的形式扫描索引 3、table 4、possible 阅读全文
posted @ 2017-03-15 11:46 Seekload 阅读(241) 评论(0) 推荐(0) 编辑