1、变量可以连续传递赋值2、var_dump()打印变量信息3、isset()与unset()4、可变变量$p = "temp";$$p则表示$temp变量,即最右边的变量的值为下一个变量的值5、变量支持引用类似C语言可以利用&获取变量地址6、变量的假值0,null, 0.0, "", "0", a...
分类:
Web程序 时间:
2015-05-05 23:32:20
阅读次数:
173
实现atoi()函数,在出错时返回0; 1 int atoi(const char *str) 2 { 3 if((str == NULL) || (strlen(str) == 0)) { 4 return 0; 5 } 6 7 int value = 0...
分类:
其他好文 时间:
2015-05-05 21:42:45
阅读次数:
129
14、 Integer 与 int 的区别 int 是 java 提供的8种原始数据类型之一。 Java 为每个原始类型提供了封装类, Integer 是 java 为 int 提供的封装类。 int 的默认值为0,而 Integer 的默认值为 null,即 Integer 可...
分类:
其他好文 时间:
2015-05-05 20:00:28
阅读次数:
126
1、获取application中指定key的meta-data值 public static String getApplicationMetadata(Context context,String metaDataKey) {
ApplicationInfo info = null;
try {
PackageManager pm =...
分类:
移动开发 时间:
2015-05-05 19:36:02
阅读次数:
224
1 Timer类TimerCallback tc=new TimerCallback(CheckTime);//提供Timer江调用方法的TimerCallback委托Timer t=new Timer(tc,null,1000,500);//state 应该传递给TimerCallback方法的对...
分类:
编程语言 时间:
2015-05-05 19:22:09
阅读次数:
151
1、将form的Opacity从100%调为我们想要的透明度,例如this->Opacity = 0.2;2、在form_load函数中加入: HWND hWnd=::FindWindow(NULL,L"Form1"); DWORD dwNewLong = GetWindowLong(hWnd, ....
分类:
编程语言 时间:
2015-05-05 19:22:01
阅读次数:
187
Sqlserver基础知识(1)创建数据库创建数据库有两种方式,手动创建和编写sql脚本创建,在这里我采用脚本的方式创建一个名称为TSQLFundamentals2008的数据库。脚本如下:View Code同时往数据库表插入一些数据,用户后续对数据库的sql的练习。在这里有需要的可以下载相应的脚本...
分类:
数据库 时间:
2015-05-05 19:09:04
阅读次数:
221
1.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num上设置默认值0,确保表中num列没有null值,然后这样查询:select id from t where ...
分类:
数据库 时间:
2015-05-05 19:03:51
阅读次数:
123
1. 先序遍历public void preorder(TreeNode root) { if(root == null) return; Stack stack = new Stack(); while(true) { if(root...
分类:
其他好文 时间:
2015-05-05 18:51:09
阅读次数:
108
1、基础对象 var o=new Object(); o.xxx=1; o.xx=2; var 01={xxx=1,xx=2}2、==与=== "5"==5 True ;"5"===5 False ;undefined==null True;==会自动转为相同类型然后比较3、 数值到字符串 (...
分类:
编程语言 时间:
2015-05-05 18:48:03
阅读次数:
135