#define BTS_SAFE_DELETE(POINTER) \do { if (POINTER != 0) { BTS_DELETE(POINTER); POINTER = 0;} \} while (0)注意:宏定义必须在一行,否则报错!\ 表示本行未结束, 没有该连接符时,直接换行编译器会...
分类:
其他好文 时间:
2014-07-03 10:25:27
阅读次数:
186
casperjs的选择器可以在dom下工作,他既支持css也支持xpath.下面所有的例子都基于这段html代码: My page Hello one two three ©2012 myselfCSS3默认情况下,...
分类:
Web程序 时间:
2014-07-03 09:10:37
阅读次数:
235
VC中常见编译错误(转载看看)1)disable#pragma warning (disable: 4311 4312) //指针类型强制转化,大小不完全匹配warning C4311: ''type cast'' : pointer truncation from ''TriNode *const...
分类:
其他好文 时间:
2014-07-03 07:01:57
阅读次数:
214
Given two sorted integer arrays A and B, merge B into A as one sorted array.
分类:
其他好文 时间:
2014-07-02 21:07:20
阅读次数:
149
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.
分类:
其他好文 时间:
2014-07-02 10:03:09
阅读次数:
175
Accessors
存取方法
All instance variables are private in Objective-C by default, so you should use accessors to get and set values in most cases. There are two syntaxes. This is the traditional 1.x syntax:
OC中所有的实例变量默认是私有的,所以多数情况下你应该使用访问器来获得和设置实例变量的值。访问器有...
分类:
其他好文 时间:
2014-07-02 08:39:04
阅读次数:
231
Rectangle and Circle
Problem Description
Given a rectangle and a circle in the coordinate system(two edges of the rectangle are parallel with the X-axis, and the other two are parallel with the Y...
分类:
其他好文 时间:
2014-07-02 07:29:06
阅读次数:
268
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first
two lists.
代码如下:
* Definition for singly-linked list.
* struct L...
分类:
其他好文 时间:
2014-07-02 07:23:59
阅读次数:
159
UVA 12714 Two Points Revisited(简单数学题)...
分类:
其他好文 时间:
2014-07-02 06:54:53
阅读次数:
154
一:编写目的本文档的编写旨在探寻规范的软件开发流程、加快软件开发速度、提高软件开发质量、降低项目综合成本。IT界有一句格言:"You can do it right; you can do it fast; you can do it cheap. Pick two." 而我们要做的就是:提供优质服...
分类:
其他好文 时间:
2014-07-01 16:36:01
阅读次数:
193