int x = 5; int& y = x; int* xp = &x; int* yp = &y;xp is equal to yp.也就是说,直接对reference取地址就可以了。 ...
分类:
编程语言 时间:
2017-03-13 14:24:13
阅读次数:
150
一 问题初始:用通常意义的管道使用这样可以:(1)ls -l | sed -n '/~$/p' 我用显示出系统自己建立的备份文件这时,我想删除这些文件,我仍然使用了管道,并执行了以下命令(2)ls -l | sed -n '/~$/p' | rm -rf 然后又用(1)中的命令显示,结果完全未变,即 ...
分类:
其他好文 时间:
2017-03-13 13:23:53
阅读次数:
259
比如,原来数据表根本就没有约束,或者说,约束不够。那么如何来添加约束呢? 添加约束 1、添加主键约束(只能一个) 2、添加唯一约束(可以多个) 3、添加外键约束() 4、添加默认约束() 现在,先创建 一、添加主键约束的语法结构 ALTER TABLE tbl_name ADD [CONSTRAIN ...
分类:
其他好文 时间:
2017-03-12 23:28:09
阅读次数:
224
1. Recursive Straight Forward, left -> right -> root 2. Iterator This is a little bit hard to understand, here is good reference https://sites.google. ...
分类:
其他好文 时间:
2017-03-12 10:44:36
阅读次数:
222
如下: mount.c:(.text.nfsmount+0xa68): undefined reference to `authunix_create_default’ mount.c:(.text.nfsmount+0xaeb): undefined reference to `clnt_sper ...
分类:
其他好文 时间:
2017-03-11 23:21:40
阅读次数:
274
本篇简述了 Android 中软键盘的控制方法,以及在开发中遇到的一些问题。
分类:
移动开发 时间:
2017-03-11 16:12:05
阅读次数:
205
sublime 非常好用,时不时提醒购买还好 但是经常还提醒更新就不能接受了 解决方法: Just go to Preferences -> Settings-User and add there: "update_check": false, 打开 Preferences -> Settings- ...
分类:
其他好文 时间:
2017-03-11 00:58:11
阅读次数:
172
XML属性列表(plist)归档 Preference(偏好设置) NSKeyedArchiver归档(NSCoding) SQLite3 Core Data XML属性列表(plist)归档 Preference(偏好设置) NSKeyedArchiver归档(NSCoding) SQLite3 ...
分类:
移动开发 时间:
2017-03-10 00:28:02
阅读次数:
270
Matrix矩阵介绍官方文档地址:https://developer.android.com/reference/android/graphics/Matrix.html在Android中,对图片的处理需要使用到Matrix类,Matrix是一个3 x 3的矩阵,内部就是个一维数组,内部有9个元素,... ...
分类:
其他好文 时间:
2017-03-09 20:22:51
阅读次数:
508
Reference: http://blog.csdn.net/u014114990/article/details/48165781 日头条涉及到算法:(1)今日头条服务器1000台左右,通过代码实现的爬虫功能,在其他传媒的网站和门户上抓取各种信息。如果在网站上抓取到纸媒的内容,优先从纸媒门户上抓 ...
分类:
编程语言 时间:
2017-03-09 19:49:17
阅读次数:
288