1.CoCreateInstance 通过传人参数CLSID创建相应组件的一个实例,并返回此组件实例的某个接口。 CoCreateInstance的声明 HRESULT __stdcall CoCreateInstance( __in REFCLSID rclsid, __in_opt LPUNKNOWN pUnkOuter, __in DWORD dwClsContext, __in REFIID riid, __deref_out LPVOID FAR* ppv ); ... Read More
posted @ 2013-05-14 21:13
javawebsoa
Views(284)
Comments(0)
Diggs(0)
打开IDA一般都是去搜索函数,可以说函数是IDA工程的基本单位吧,数据结构什么的都是为函数服务而已。函数列表在界面左侧的Functions Window: 可以看到,UIKit有27789个函数呢。在搜索前要先知道函数的表示方式。Objective-C函数的表示:拿UIView来做例子吧。在xcode documentation中,UIView的函数会有这样的表示:+ (void)beginAnimations:(NSString *)animationID context:(void *)context- (void)drawRect:(CGRect)rect- (id)initWithFr Read More
posted @ 2013-05-14 21:11
javawebsoa
Views(402)
Comments(0)
Diggs(0)
原题:Description Let Compression of an integer a be the sum of all digits of a and yields another positive integer. It is obvious that if we compress a number for certain finite steps, we will reach a one digit number. You are given a positive integer a and you are asked to output a one digit number w Read More
posted @ 2013-05-14 21:09
javawebsoa
Views(211)
Comments(0)
Diggs(0)
1、Shell脚本中用#表示注释,相当于C语言的//注释。但如果#位于第一行开头,并且是#!(称为Shebang)则例外,它表示该脚本使用后面指定的解释器/bin/sh解释执行$ chmod +x script.sh$ ./script.sh2、两种执行Shell脚本的方法:$ ./script.sh$ sh ./script.sh3、 一行中可以输入由分号;隔开的多个命令$ cd ..;ls -l4、 只存在于当前Shell进程,用 set 命令可以显示当前Shell进程中定义的所有变量(包括本地变量和环境变量)和函数环境变量是任何进程都有的概念,而本地变量是Shell特有的概念。在Shel Read More
posted @ 2013-05-14 21:07
javawebsoa
Views(161)
Comments(0)
Diggs(0)
mini2440uboot移植-基本操作指令继续uboot移植的基础知识学习1.首先学习下nandfalsh基本操作指令nand info(显示可以使用的nand flash)nand device [dev](显示或设定当前使用的nand flash)nand read addr off size (nand flash读取命令,从nand的off偏移地址处读取size字节的数据到SDRAM的addr地址)nand write addr off size (nand flash烧写命令,将SDRAM的addr地址处的size字节的数据烧写到nand flash的off偏移地址)nand wr Read More
posted @ 2013-05-14 21:05
javawebsoa
Views(344)
Comments(0)
Diggs(0)
分治法的基本思想:将一个规模为n的问题分解为k个规模较小的子问题,这些子问题互相独立且与原问题相同。递归地解这些问题,然后将各个子问题的解合并成原问题的解。它的一般的算法设计模式如下:divide-and-conquer(P) { if ( | P | <= n0) adhoc(P); //解决小规模的问题 divide P into smaller subinstancesP1,P2,...,Pk;//分解问题 for (i=1,i<=k,i++) yi=divide-and-conquer(Pi); //递归的解各子问题 return merge(y1,...,yk); //将 Read More
posted @ 2013-05-14 21:03
javawebsoa
Views(373)
Comments(0)
Diggs(0)
Problem Description Alice and Bob are practicing hard for the new ICPC season. They hold many private contests where only the two of them compete against each other. They almost have identical knowledge and skills, the matter which results many times in ties in both the number of problems solved and Read More
posted @ 2013-05-14 21:01
javawebsoa
Views(174)
Comments(0)
Diggs(0)
BxCarousel是一个具有众多配置且易用的Jquery图片滚动插件,特征主要有: ◆ 可以指定显示的元素总数 ◆ 可以指定每次滚动的元素个数 ◆ 自动播放模式 ◆ 前一张/后一张按钮控制图片流动 参数含义: display_num:显示元素的数量,几张图片 move:单击左右控制键时,移动的元素个数,此处为移动2张图片 prev_image:上一元素按钮图片 next_image:下一元素按钮图片 margin:图片之间的间隙,一般设为10px auto:自动滚动效果 controls:是否显示左右控制按钮,此处为f... Read More
posted @ 2013-05-14 20:59
javawebsoa
Views(428)
Comments(0)
Diggs(0)
//server.php<? // 设置一些基本的变量 $host = "localhost"; $port = 1111; // 设置超时时间 set_time_limit(0); // 创建一个Socket $socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could not create socket\n"); //绑定Socket到端口 $result = socket_bind($socket, $host, $port) or die("Could not bin Read More
posted @ 2013-05-14 20:57
javawebsoa
Views(202)
Comments(0)
Diggs(0)
小明和小强都是张老师的学生,张老师的生日是M月N日,2人都知道张老师的生日是下列10组中的一天,张老师把M值告诉了小明,把N值告诉了小强,张老师问他们知道他的生日是那一天吗? 3月4日3月5日3月8日6月4日6月7日9月1日9月5日12月1日12月2日12月8日小明说:如果我不知道的话,小强肯定也不知道 小强说:本来我也不知道,但是现在我知道了 小明说:哦,那我也知道了 请根据以上对话推断出张老师的生日是哪一天?? 分析过程:1.小明说:如果我不知道的话,小强肯定也不知道前提:小明不知道N结果:小强也不可能推断出张老师的生日,说明从N到M不可能建立一一对应的关系,于是排除6月7日和12月2日. Read More
posted @ 2013-05-14 20:55
javawebsoa
Views(271)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号