变量 存储空间 存储数据强类型: 变量的类型和变量中数据类型必须一致定义变量: 变量类型
变量名; int a;为变量赋值: 变量名=变量值 a = 10; int a = 10; ...
分类:
编程语言 时间:
2014-07-22 23:09:53
阅读次数:
305
浏览器处于安全策略考虑,只允许Javascript关闭由javascript打开的页面,为了用js关闭当前窗口,我们可以这么考虑,这也是最常用的做法。fdsafasfunction
xx(){ // 重置window.opener用来获取打开当前窗口的窗口引用 // 这里置为null,避免I...
$_$PROCESS_ID$$read a file line by
line#!/usr/bin/perluse strict;use warnings;my $dir ="./tmp";open (FH, ") {print
"$_";}
分类:
其他好文 时间:
2014-07-22 23:09:35
阅读次数:
293
http://anthon-lx.iteye.com/blog/811460完整的错误信息如下:java.sql.SQLException:
Listener refused the connection with the following error:ORA-12505,
TNS:listene...
分类:
数据库 时间:
2014-07-22 23:09:35
阅读次数:
430
二分查找算法,对数据进行查找并且显示位置。核心思想:将所查找数据与查询数组中间的数进行比较,findValrightIndex) 8 { 9 //
提示找不到,防止无穷递归10 document.write("找不到");11 retur...
分类:
编程语言 时间:
2014-07-22 23:09:35
阅读次数:
304
1.每个类都默认导入 import
java.lang.*;2.如果一个类没有定义构造方法,则默认提供公开无参构造方法3.在类中,访问成员变量或成员方法,如果不加引用,默认加上"this."4.在构造方法中,如果第一行不是"this(...)"或"super(...)"
,默认为"super();"...
分类:
编程语言 时间:
2014-07-22 23:09:35
阅读次数:
280
The Super PowersTime Limit:1000MSMemory
Limit:Unknown64bit IO Format:%lld & %llu[Submit] [Go Back]
[Status]DescriptionAThe Super PowersWe all know the...
分类:
其他好文 时间:
2014-07-22 23:09:34
阅读次数:
554
戳我去解题Givennnon-negative integersa1,a2, ...,an,
where each represents a point at coordinate (i,ai).nvertical lines are drawn
such that the two endpoint...
分类:
其他好文 时间:
2014-07-22 23:09:34
阅读次数:
337
在项目中经常会有闪屏的效果在这里主要是通过定时器,将已经设定好的效果展现出来/* *
2.5秒以后开始执行Runnable的run方法 */ new Handler().postDelayed(new Runnable() { @O...
分类:
移动开发 时间:
2014-07-22 23:09:34
阅读次数:
526
主键约束(Primary Key
Constraints):不能在允许NULL值的列上定义主键约束。 ALTER TABLE dbo.test ADD CONSTRAINT PK_test
PRIMARY KEY(testid);唯一约束(Unique Constraints):唯一约束用来保...
分类:
其他好文 时间:
2014-07-22 23:09:33
阅读次数:
347