NULL: 定义为0或0L或(void *)0,用于指示一个指针值是空,即什么都不指:'\0': 用且只用字符串结束符;NUL : 0x00,0值字符,可以用于结束ASCII字符串,和'\0'类似,但是在c/c++中没有定义,如果要使用的话,需要自定义为 #define NUL '\0';EOF :通常定义为-1, 文件结束符标志,一般是ctrl+z. 1.0 can be used anywhere, it is the generic symbol for each type's zero…
ODP.NET: 引用: using Oracle.DataAccess; //Oracle g 11.2.0 using Oracle.DataAccess.Client; using Oracle.DataAccess.Types; //下载 http://www.oracle.com/technetwork/topics/dotnet/downloads/net-downloads-160392.html //引用:D:\app\geovindu\product\11.2.0\dbhome…
昨晚想实现一个功能,需要把一个对象存储于ViewState中去,但在运行时,出现下面的异常. Type 'Insus.NET.PictureObject' in Assembly 'App_Code, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable. Description: An unhandled exception occurred during the executi…
1. mysql -h 127.0.0.1 的时候,使用TCP/IP连接, mysql server 认为该连接来自于127.0.0.1或者是"localhost.localdomain" 2. mysql -h localhost 的时候,是不使用TCP/IP连接的,而使用Unix socket:此时,mysql server则认为该client是来自"localhost" 3. mysql权限管理中的"localhost"有特定含义: 注意:…
当 arr 是一个array时,写Java开始的corner case常常会写类似下面的语句: if(arr == null || arr.length == 0){ return 0; } 其实这是两个条件, arr==null 和 arr.length==0 是不同的: arr.length == 0说明 arr is an empty array, which means an empty array is assigned to arr; arr.length would yields…