类别,有些程序员又称之为分类。类别是一种为现有的类添加新方法的方式,尤其是为系统的做扩展的时候,不用继承系统类,可以直接为类添加新的方法。也可以覆盖系统类的方法。如:@interface NSObject (MyCategory)- (void)myMethod;@end这样我们就给NSObject...
分类:
其他好文 时间:
2015-07-25 15:00:51
阅读次数:
77
首先声明,以下是个人见解,如有错误望指出,先谢谢! 我们知道数据库(SQL) 的事务,现在我讲讲我的大概了解: 数据库的事务使用基本语法:begin try begin tran [tranName] --语句 commit tran [tranName]end trybegin catch...
分类:
数据库 时间:
2015-07-25 01:37:51
阅读次数:
209
local lpeg = require "lpeg" function f0() end; function f1() return "a" end function f2() return "a","b" end function ittable(t) for key, value in pa....
分类:
其他好文 时间:
2015-07-24 20:36:31
阅读次数:
245
1.传统的方法 fopen, fclose feof:file、end of file 例子:$file_handle = fopen("c:\\myfile.txt", "r");//使用fopen打开与文件的连接while (!feof($file_handle)) { //使用feo...
分类:
Web程序 时间:
2015-07-24 20:22:41
阅读次数:
118
N!Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N!InputOne N in one line, process to the end of fi...
分类:
其他好文 时间:
2015-07-24 20:21:09
阅读次数:
119
首先新建一个RootViewController 再建一个FirstViewController
在RootViewController.m中写入
#import "WJJRootViewController.h"
#import "WJJFirstViewController.h"
@interface WJJRootViewController ()
@end
@implementa...
分类:
其他好文 时间:
2015-07-24 18:21:39
阅读次数:
116
博客搬家啦http://t.cn/RvFZs2cSTL中list的用法C++ Lists(链表)赋值(assign)语法: void assign( input_iterator start, input_iterator end ); void assign( size_type num, ...
分类:
编程语言 时间:
2015-07-24 16:01:28
阅读次数:
213
|浏览:688|更新:2014-09-20 19:39123分步阅读将网站网址加入收藏夹,方便下次访问!工具/原料网址;电脑。方法/步骤//创建加入收藏夹JS函数//调用加入收藏函数加入收藏加入收藏夹加入收藏//运行测试加入收藏夹成功!!END注意事项调用js加入函数,传当前网址参数:window....
分类:
编程语言 时间:
2015-07-24 15:50:20
阅读次数:
151
认识IWizard 接口1IWizard 接口用于定义模板向导扩展的逻辑。该接口包含6个方法,方法的具体信息可参考MSDN。END创建实现 IWizard 的程序集1创建一个类库项目MyTempalteWizar添加EnvDTE.dll和Microsoft.VisualStudio.Template...
分类:
其他好文 时间:
2015-07-24 15:37:38
阅读次数:
116
协议@protocol 协议名 @end@required 默认类型,必须实现的协议方法@optional 非必要实现协议方法oc是弱语法,即使required也可以不是先,这个是个关键字,标记实现的必要程度如果一个类遵守了协议,那么这个类的实例对象id 对象1 = 实现了这个协议的对象2;对象1 ...
分类:
移动开发 时间:
2015-07-24 12:25:11
阅读次数:
148