int 转 NSNumber:[NSNumber numberWithInt:(int)];NSNumber 转 int[(NSNumber) intValue];其他数据类型类似有些数组只能存Object对象,所以需要将普通数据类型转换成为Object型。
分类:
其他好文 时间:
2014-07-16 23:25:42
阅读次数:
194
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2014-07-16 23:16:32
阅读次数:
156
object missing = System.Reflection.Missing.Value; //表示缺i省object SaveFileDialog savedialog = new SaveFileDialog(); savedialog.Filter = "(*.xlsx)|*.xlsx...
分类:
Web程序 时间:
2014-07-16 23:12:04
阅读次数:
236
字典,数组 ,集排序一、字典类存储以下数据name:张三; sex:男;age:18 film:风暴; playcount:10000次;price:60元字典类用于保存具有映射关系(key-value对)的数据对于“name:张三”来讲,key就是“name”,key对应的value是“张 三”一...
分类:
移动开发 时间:
2014-07-16 23:07:45
阅读次数:
277
//自定义验证规则 名称为name//$.fn.validatebox.defaults.rules.name.message 动态自定义提示内容$.extend($.fn.validatebox.defaults.rules, {name: {validator: function (value,...
分类:
其他好文 时间:
2014-07-10 13:40:49
阅读次数:
207
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l...
分类:
其他好文 时间:
2014-07-10 12:37:21
阅读次数:
189
取得dbgrid选中行的行号DBGrid2.DataSource.DataSet.RecNo取得dbgrid选中行指定列的数据DBGrid2.Fields[0].Value;//第一列DBGrid2.Fields[1].Value;//第二列网上有种说法是假如你用的是 adoquery1那就是ado...
分类:
数据库 时间:
2014-07-10 11:47:41
阅读次数:
1209
这是添加自定义字符串的方式,保存是以键-值的形式保存的,可以通过key获取value,一般用这种方法配置全局内使用的字符串.是配置文件的根配置节.是自定义配置节,包含自定义应用程序设置.add元素是向应用程序设置集合添加名称/值对形式的自定义应用程序设置.代码:Web.config1 2 3 4 5...
分类:
Web程序 时间:
2014-07-10 11:30:53
阅读次数:
199
//格式化url查询参数为jsonfunction formatUrl(url){ var reg=/(?:[?&]+)([^&]+)=([^&]+)/g; var data={}; function fn(str,pro,value){ data[decod...
分类:
其他好文 时间:
2014-07-10 10:16:51
阅读次数:
167
(一)
下面这段代码:
int x;
void someFunc()
{
double x; //local variable
std::cin>>x; //read a new value to local x
}
这个指涉的是local变量x,而不是global变量x,因为内存作用域会的名称遮掩外围作用域的名称。当编译器处于someFunc的作用域内并遭遇...
分类:
编程语言 时间:
2014-06-28 07:58:25
阅读次数:
281