1,创建字符串,有@都是对象。NSString *myString1 = @"My String One”;将一个utf8编码的字符串实例化成对象NSString *myString2 = [NSString stringWithUTF8String:"My String Two"];第三种写法NS...
分类:
其他好文 时间:
2014-08-15 14:25:48
阅读次数:
289
一. 事件委托什么是事件委托?用现实中的理解就是:有100 个学生同时在某天中午收到快递,但这100 个学生不可能同时站在学校门口等,那么都会委托门卫去收取,然后再逐个交给学生。而在jQuery 中,我们通过事件冒泡的特性,让子元素绑定的事件冒泡到父元素(或祖先元素)上,然后再进行相关处理即可。如果...
分类:
编程语言 时间:
2014-08-15 14:22:58
阅读次数:
267
Oil DepositsThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangula...
分类:
其他好文 时间:
2014-08-15 12:25:18
阅读次数:
306
Well, in WPF the difference between ListView and DataGrid is just one. Editing. You need editing use DataGrid, otherwise use ListView. You can edit in...
分类:
其他好文 时间:
2014-08-15 12:11:19
阅读次数:
211
系统环境:ubuntu-server-14.04 网络环境:VMware Nat eth0 192.168.149.130 配置密码:为了便于管理,所有服务密码均配置为openstack 一、数据库 a)?安装 # apt-get install python-mysqldb mysql-server b)?配...
分类:
其他好文 时间:
2014-08-15 10:55:19
阅读次数:
372
Description
Given an undirected weighted graph G, you should find one of spanning trees specified as follows.
The graph G is an ordered pair (V, E), where V is a set of vertices {v1, v2, …, vn}
...
分类:
其他好文 时间:
2014-08-15 09:33:57
阅读次数:
259
I got a DP solution first which is O(n^2). Apparently it is not a optimized one - think about: it is linear value space. There must be O(n) solution.A...
分类:
其他好文 时间:
2014-08-15 05:04:07
阅读次数:
249
DescriptionAssume the coasting is an infinite straight line.Land is in one side of coasting, sea in the other.Each small island is a point locating in...
分类:
其他好文 时间:
2014-08-15 01:28:36
阅读次数:
217
/var/log/messages中一直报的错one or more VIP associated with VRID mismatch actual MASTER advertbogus VRRP packet received on eth0 !!!VRRP_Instance(VI_1) ign...
分类:
其他好文 时间:
2014-08-15 01:14:56
阅读次数:
765
Description
In order to make their sons brave, Jiajia and Wind take them to a big cave. The cave has n rooms, and one-way corridors connecting some rooms. Each time, Wind choose two rooms x and y, an...
分类:
其他好文 时间:
2014-08-15 00:06:46
阅读次数:
331