//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
SQL还原时出现下面的错误,System.Data.SqlClient.SqlError:
尚未备份数据库 "***" 的日志尾部。如果该日志包含您不希望丢失的工作,请使用 BACKUP LOG WITH NORECOVERY 备份该日志。请使用
RESTORE 语句的 WITH REPLACE 或...
分类:
数据库 时间:
2014-05-01 22:26:24
阅读次数:
499
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
whether two nohead-linkedlist have the same end
个人信息:就读于燕大本科软件工程专业 目前大三;
本人博客:google搜索“cqs_2012”即可;
个人爱好:酷爱数据结构和算法,希望将来从事算法工作为人民作出自己的贡献;
博客内容:在无头节点的链表里删除元素;
博客时间:2014-4-15;
编程语言:C+...
分类:
其他好文 时间:
2014-05-01 18:13:31
阅读次数:
352
在memory.c里面,遇到一个宏定义,如下:
#define CODE_SPACE(addr) ((((addr)+4095)&~4095) start_code + current->end_code)
看的第一眼,不知道,第二眼,还是不知道,纠结了半天还是不知道。
睡了一晚,今天早上再看,嘿嘿,居然看懂了。。。
这个宏定义用于判断给定的addr线...
分类:
系统相关 时间:
2014-05-01 17:54:09
阅读次数:
516
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
大家对va_list , va_start,va_arg,va_end
不陌生吧? 对scanf, printf类型
(如sscanf,sprintf)的带可变参数的函数的原理知道多少呢?
如果有兴趣了解的
话,推荐大家阅读: http://www.cnblogs.com/acutus/p/variable-parameter.html
当然,值得指出...
分类:
编程语言 时间:
2014-04-30 22:21:40
阅读次数:
364
Steps:
1. backup database DBmirror on SQL1
2. backup database log
3. copy db and log backup files to SQL2
4. restore db with norecovery
5. restore log with norecovery
6. create endpoints on both...
分类:
数据库 时间:
2014-04-30 22:15:38
阅读次数:
414