/**获取设备信息 * @param c * @return */ public static void setDeviceInfo(Context c,RequestParams params){ TelephonyManager tm = (TelephonyManager) c.ge...
分类:
移动开发 时间:
2014-07-22 22:53:34
阅读次数:
239
Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next level and al...
分类:
其他好文 时间:
2014-07-22 22:53:33
阅读次数:
229
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2014-07-22 22:53:14
阅读次数:
184
源码部分 通过Sizzle.attr匹配出值 然后通过表达式刷选计算 "ATTR": function( name, operator, check ) { return function( elem ) { var result = Sizzle.attr( elem, name ); if ( ...
分类:
其他好文 时间:
2014-07-22 22:51:56
阅读次数:
195
1 #include 2 #include 3 #include "printCollection.h" 4 5 using namespace std; 6 7 /** 8 * Return the maximum item in array a. 9 *Assume a.size(...
分类:
其他好文 时间:
2014-07-22 22:51:38
阅读次数:
203
Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the fir...
分类:
其他好文 时间:
2014-07-22 22:51:35
阅读次数:
146
0x01 工具准备
1.最简c代码一只,
int main(){
return 0;}
2.ollydbg
3.VC++6.0
4.GCC(mingw)
0x02 代码分析
int main()
{
return 0;
}
在gcc下,添加-nostdlib编译选项,即链接器不链接标准库,会提示以下错误信息:
D:\Backup\我的文档\src>gcc mai...
分类:
其他好文 时间:
2014-07-19 23:12:48
阅读次数:
452
Function Types as Return Types (函数类型作为返回值类型) 一个函数的类型可以作为另一个函数的返回值类型.可以在一个函数的返回值箭头后面写上一个完整的函数类型. 例如: 下面的例子定义了两个简单的函数,分别为stepForward 和 stepBackward.其...
分类:
移动开发 时间:
2014-07-19 23:00:50
阅读次数:
353
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2014-07-19 22:36:30
阅读次数:
149
二分搜索实例 ,先排序,算出每一个石头的间隔,从l和最小间隔中二分找答案#include #include using namespace std;int a[50010],n,m;bool cmp(int a,int b){ return am) return 0; else retu...
分类:
其他好文 时间:
2014-07-19 22:27:54
阅读次数:
280