答: init中调用super的init方法来初始化自己所包含有的父类信息1.内存分配 内存应该在[Class alloc]的时候就已经分配了,大小和类型应该由对应的Class来决定。而init方法只是进行对象内部各种变量的初始化,同时将retain count加一,表示目前这块内存空间有人在...
分类:
其他好文 时间:
2014-08-21 11:21:44
阅读次数:
167
学习纲要:
1.php七种变量类型
2.isset和empty两个函数的区分
3.类型测试
4.类型的自动转换
5.类型强制转换
注意:
1.对象中调用方法是通过 变量->方法名 来调用. $user1 = new per(); $user1->say();
2.更改页面的编码:
header ("content-type:text/html;charset=gbk")...
分类:
Web程序 时间:
2014-08-21 01:37:43
阅读次数:
374
The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11. 11 is read of...
分类:
其他好文 时间:
2014-08-21 01:32:23
阅读次数:
141
@Select("SELECT * FROM wc_homework WHERE organization_id=#{classId} ORDER BY createtime DESC LIMIT #{start},#{count}")
@Results({
@Result(column = "course_id", property = "course_id"...
分类:
其他好文 时间:
2014-08-21 00:12:43
阅读次数:
227
//枚举光标当前所在位置的函数包含的指令的数量//#include static main(){ auto func,end,count,inst; func = GetFunctionAttr(ScreenEA(),FUNCATTR_START); //获取包含光标位置的起始地址 if(func ...
分类:
其他好文 时间:
2014-08-20 19:18:52
阅读次数:
180
好水0.0
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define eps 1e-12
#define INF 0x7fffffff
#define maxn 31111
using namespace std;
char str[maxn];
str...
分类:
其他好文 时间:
2014-08-20 16:35:22
阅读次数:
221
使用file_get_contents()获取txt文件的内容,然后通过explode()把获得的字符串转化为数组。获得数组长度可以使用count()函数';} ?>关于txt文档中的换行符 在正则表达式中,有一个\n是newline的意思,又有一个\r是carriage return的意思。在处理...
分类:
Web程序 时间:
2014-08-20 16:03:12
阅读次数:
187
看过很多回 关于 stream read(byte[] buffer, int offset, int count)有个问题一直没注意过offset + count 不能超过 buffer的长度所以FileStream stream = new FileStream(txtAttachments.T...
分类:
其他好文 时间:
2014-08-20 13:55:22
阅读次数:
144
Perfect Pth PowersTime Limit:1000MSMemory Limit:10000KTotal Submissions:16638Accepted:3771DescriptionWe say that x is a perfect square if, for some in...
分类:
其他好文 时间:
2014-08-20 12:14:12
阅读次数:
380
很少写东西。有时候会把当下的心情记在日记本里,纸的那种。那本子经常放宿舍,而且以前都是深夜回去写写,白天想写点什么的时候就不方便了。本来想叫diary的,结果不小心写成dairy,念念还挺好听,喜欢喝奶。今天很累,也很乱。总是这样,整理一下没过几天就又乱。看来Focus的能力还需要好好锻炼。有时候也...
分类:
其他好文 时间:
2014-08-19 23:50:15
阅读次数:
313