方法: 1 --#local_variable代表临时表名 2 if object_id('tempdb.[dbo].#local_variable') is not null 3 begin 4 drop table #local_variable 5 end 6 或 7 if object_i....
分类:
其他好文 时间:
2015-05-23 21:20:40
阅读次数:
99
问题:用 android 4.4 写android访问http时,到connection.getResponseCode() 就不被执行,也不报错:但是抛出org.json.JSONException: End of input at character 0 of .异常:连接代码:public s...
分类:
移动开发 时间:
2015-05-23 19:52:12
阅读次数:
336
继承继承的基本用法设计两个类Bird、Dog// Bird的声明@interface Bird : NSObject{ @public int weight;}- (void)eat;@end// Bird的定义@implementation Bird- (void)eat { N...
分类:
其他好文 时间:
2015-05-23 18:22:05
阅读次数:
146
简单使用基本用途可以用来声明一大堆方法(不能声明成员变量)只要某个类遵守了这个协议,就相当于拥有这个协议中的所有方法声明只要父类遵守了某个协议,就相当于子类也遵守了格式协议的编写@protocol 协议名称// 方法声明列表@end某个类遵守协议@interface 类名 : 父类 @end关键字协...
分类:
其他好文 时间:
2015-05-23 18:12:00
阅读次数:
131
/* 面向过程编程思想: 以事件为中心,关心的是解决问题的步骤,实现函数依次调用 (一步一步) 面向对象编程思想(OOP): 以事物为中心,关心的是参与问题的对象有哪些,而完成这些问题只是对象所有功能中的一个小功能*/类的接口部分: 以@interface 开头 以@end结尾@interf...
分类:
其他好文 时间:
2015-05-23 18:06:37
阅读次数:
106
分类-Category基本用途如何在不改变原来类模型的前提下,给类扩充一些方法?有2种方式继承分类(Category)格式分类的声明@interface 类名 (分类名称)// 方法声明@end分类的实现@implementation 类名 (分类名称)// 方法实现@end好处一个庞大的类可以分模...
分类:
其他好文 时间:
2015-05-23 18:05:34
阅读次数:
113
数据层数据分页三种常用方法:USE AdventureWorks20081、Top*Top 1 -使用 Top*Top 2 DECLARE @Start datetime,@end datetime; 3 SET @Start=getdate(); 4 5 DECLARE @PageNumber ....
分类:
数据库 时间:
2015-05-23 15:28:27
阅读次数:
253
效果图:
UITableView设置每行显示的内容,字体格式,大小,颜色
首先设置根视图控制器:
AppDelegate.m文件
#import "AppDelegate.h"
#import "JRTableViewController.h"
@interface
AppDelegate ()
@end
...
分类:
其他好文 时间:
2015-05-23 14:16:06
阅读次数:
184
vector::iterator it; for(it = vtNoAlignCH.begin(); it != vtNoAlignCH.end(); it++)
{
//宽字节正则
wstring line = *it;
wregex rgx(L"[\\u4e00-\\u9fa5]+");
std::w...
分类:
其他好文 时间:
2015-05-23 12:58:22
阅读次数:
486
Be aware to remove any dependencies to any modules related to Editor,or else it will end up with failure of packaging.#if WITH_EDITOR#endifis your goo...
分类:
其他好文 时间:
2015-05-23 12:45:36
阅读次数:
121