上面需检测id是否为null 如果未提供id值或id值类型不匹配,则使用默认值。但仍需校验值是否超出范围
分类:
其他好文 时间:
2014-07-09 22:50:10
阅读次数:
216
【判断当前Selection是否为prefab】PrefabUtility.GetPrefabParent(target) == null && PrefabUtility.GetPrefabObject(target) != null参考:file://localhost/Applications...
分类:
其他好文 时间:
2014-07-09 22:31:47
阅读次数:
195
对于针对字符串位置的操作,第一个位置被标记为1。ASCII(str) 返回字符串str的 最左面字符的ASCII代码值。如果str是空字符串, 返回0。如果str是NULL,返回NULL。mysql> select ASCII('2'); -> 50mysql> select ASCI...
分类:
数据库 时间:
2014-07-09 22:12:27
阅读次数:
444
看下面的英文解释:const char* c_str ( ) const;Get C string equivalentGenerates a null-terminated sequence of characters (c-string) with the same content as the...
分类:
编程语言 时间:
2014-07-09 20:40:50
阅读次数:
345
1 public class MyTabControl : TabControl 2 { 3 4 Timer t = null; 5 protected override void OnSelectionChanged(SelectionChangedE...
分类:
其他好文 时间:
2014-07-09 00:10:33
阅读次数:
597
oracle下session的查询与删除
1、查询当前session
SQL>
select username,sid,serial# from v$session where username is not null;
USERNAME SID SERIAL#
--------------------------...
分类:
数据库 时间:
2014-07-08 18:06:02
阅读次数:
291
textView.setCompoundDrawables(drawable, null, null, null);时看不到ni...
分类:
移动开发 时间:
2014-07-08 12:50:15
阅读次数:
283
野指针,也就是指向不可用内存区域的指针。通常对这种指针进行操作的话,将会使程序发生不可预知的错误。
这是野指针的定义,但很多C语言新手对它还是很陌生,下面我就简单举一个例子来看一看。在VC6.0中输入以下代码:
#include
#include
void main()
{
char *p;
//...可能有别的很多操作
if(p != NULL)
{...
分类:
其他好文 时间:
2014-07-06 12:21:18
阅读次数:
318
1. 输出缓冲区的刷新
我们的程序已经使用过endl 操纵符,用于输出一个换行符并刷新缓冲区。
除此之外,C++语言还提供了另外两个类似的操纵符。第一个经常使用的flush,
用于刷新流,但不在输出中添加任何字符。第二个则是比较少用的ends,这个
操纵符在缓冲区中插入空字符null,然后后刷新它:
cout
cout
cout
2. unitbuf 操纵符
如果...
分类:
编程语言 时间:
2014-07-06 11:53:03
阅读次数:
267
@SuppressWarnings("rawtypes")
public static void getProperties() {
Properties properties = null;
InputStream in = null;
try {
properties = new Properties();
//获取文件
in = Object.cla...
分类:
编程语言 时间:
2014-07-05 23:47:03
阅读次数:
290