错误原因:
exc_bad_access(code=1, address=0x789870)野指针错误,主要的原因是,当某个对象被完全释放,也就是retainCount,引用计数为0后。再去通过该对象去调用其它的方法就会出现野指针错误。
例如:
Person *jerry = [[Person alloc]init]; // retainCount引用计数为1
[jerry eat];...
分类:
移动开发 时间:
2014-07-22 23:05:16
阅读次数:
372
1.BIND的组成?
* named守护进程–用来回答查询结果的
* 去联系DNS分布式数据库的服务器用来解析主机查询的库例程
* DNS的一些重要命令:nslookup,dig和host
* 2.名字服务器
* 权威--一个区的正式代表
* 主服务器:每个区都有的一个主名字服务器,保存着本区数据的正式拷贝。SA...
分类:
其他好文 时间:
2014-07-22 23:04:55
阅读次数:
334
Little Vasya has received a young builder’s kit. The kit consists of several wooden bars, the lengths of all of them are known. The bars can be put one on the top of the other if their lengths are the...
分类:
其他好文 时间:
2014-07-22 23:01:53
阅读次数:
323
题目:du熊学斐波那契ITime Limit : 2000/1000ms (C/Other)
Memory Limit : 65535/32768K (C/Other)本次组委会推荐使用C、C++Problem
Descriptiondu熊对数学一直都非常感兴趣。最近在学习斐波那契数列的它,向你展示...
分类:
其他好文 时间:
2014-07-22 23:00:33
阅读次数:
226
【题目】
Problem E
Open Credit System
Input: Standard Input
Output: Standard Output
In an open credit system, the students can choose any course they like, but there is a problem. Some of the stude...
分类:
其他好文 时间:
2014-05-03 00:22:50
阅读次数:
380
【题目】
Your boss has just unearthed a roll of old computer tapes. The tapes have holes in them and might contain some sort of useful information. It falls to you to figure out what is written on them...
分类:
其他好文 时间:
2014-05-02 23:35:16
阅读次数:
526
一,socket 模块
套接字包括两类:服务器,客户机,
创建一个套接字后让它等待连接
服务器:
import socket
s = socket.socket()
port = 1234
host = socket.gethostname()
print host
s.bind((host,port))
s.listen(5)
while True:
get,addr = s...
分类:
编程语言 时间:
2014-05-02 21:59:57
阅读次数:
444
Shaass has decided to hunt some birds. There are n horizontal electricity wires aligned parallel to each other. Wires are numbered 1 to n from
top to bottom. On each wire there are some oskols sitti...
分类:
其他好文 时间:
2014-05-02 20:48:26
阅读次数:
462
①解决安卓SDK更新dl-ssl.google.com无法连接进入C:\Windows\System32\drivers\etc下,用记事本打开host文件://74.125.237.1
dl-ssl.google.com74.125.23.190 dl-ssl.google.com②eclipse...
分类:
移动开发 时间:
2014-05-02 12:15:03
阅读次数:
343
1,按照vmware,导入系统(注意td提供的版本是64位的)
2,linux系统:root/root
3,配置ip:
Enter a cop entry in the linux hosts file (/etc/hosts accessible from the linux command line in the VMware console, ie. c:>vi /etc/host...
分类:
其他好文 时间:
2014-04-30 22:13:39
阅读次数:
503