if (ios_Vewsion_5_Or_Above) {//iOS 5系统之后的版本
self.tableView.bounces =
NO;
} else {
for (id subview
in self.tableView.subviews)
if ([[subview
class] isSubclassOfCl...
分类:
其他好文 时间:
2014-07-22 23:03:13
阅读次数:
281
//MyToolbar.h 头文件@interface MyToolbar : UIToolbar
@end //MyToolbar.m 实现文件#import "MyToolbar.h"@implementation MyToolbar-
(id)initWithFrame:(CGRect)fra...
分类:
其他好文 时间:
2014-07-22 22:59:54
阅读次数:
240
Space AntTime Limit:1000MSMemory Limit:10000KTotal
Submissions:2934Accepted:1874DescriptionThe most exciting space discovery
occurred at the end of th...
分类:
其他好文 时间:
2014-07-22 22:59:15
阅读次数:
365
switch语句语法格式Switch是多条件判断语句。注意:使用switch中的表达式里面只能放字符或数字使用时不要忘了在case语句之后加上一个break,表示退出整个语句,如果不加入此语句,它会从第一个满足条件的地方开始后续的都要被执行。我们看下如果在case语句后面没有加上break话会出现什...
分类:
其他好文 时间:
2014-05-01 21:17:04
阅读次数:
446
>>> for i in range(0,10):if i >
10:break;else:print "hello world";输出:hello world>>> for i in
range(0,10):if i > 5:break;else:print "hello world";没有输出-...
分类:
编程语言 时间:
2014-05-01 21:13:53
阅读次数:
368
1.测试sql语句执行时间的方法,获得时间差declare @end_date
datetimeselect @begin_date = getdate()--要执行的sql语句select @end_date =
getdate()select datediff(ms,@begin_date,@e...
分类:
数据库 时间:
2014-05-01 21:11:51
阅读次数:
398
@interface DemoObj()@property (nonatomic, strong)
NSOperationQueue *queue;@end@implementation DemoObj- (instancetype)init{ self =
[super init]; ...
分类:
移动开发 时间:
2014-05-01 20:28:37
阅读次数:
917
valid();
}else{
$wechatObj->responseMsg();
}
class wechatCallbackapiTest
{...
分类:
微信 时间:
2014-04-30 22:35:38
阅读次数:
720
void GameLayer::ccTouchEnded(CCTouch *touch,CCEvent *event){
CCLog("end %f,%f",touchStartP.x,touchStartP.y);
if (openTouch) {
CCPoint touchEndP=touch->getLocation();...
分类:
其他好文 时间:
2014-04-30 22:33:40
阅读次数:
359
很好的一道动态规划法题目。
注意:
1 行列别搞错了,要很细心一点一点对起来
2 要以边线思考,不要以方块来计算, N*M个方块就成了(N+1)*(M+1)条交叉线了,最下面和最左边的线就方便初始化了
3 注意C++的四舍五入的方法
动态规划的状态转移方程:
if (A[y][x]) B[x] = t + 1.414213562;
else B[x] = min(B[x-1], B[x]) + 1 ;
A[y][x]表示是否有对角线,有对角线必定是走对角线的。...
分类:
其他好文 时间:
2014-04-30 22:21:38
阅读次数:
369