上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 58 下一页
摘要: 1.关键字命名:为了避免与已有的c,C++关键字冲突,ObjectC关键字都有@开始:如:@classs,@interface,@private,@try,@catch,@protocol等。2.oc类分为2个文件,一个是.h文件,一个是.m文件:.h文件:存放类,函数的申明;类申明使用关键字@interface @end来申明;.m文件:存放类的具体实现;类实现使用关键字@implementation @end来实现;3.对象的方法和类的方法:+表示类的方法;-表示对象的方法4.类的申明 Dog.h:#import@interface Dog:NSObject{}@end5.类的实现 Dog 阅读全文
posted @ 2014-02-12 22:47 清山博客 阅读(2040) 评论(0) 推荐(0)
摘要: #import int main(int argc, const char * argv[]){ @autoreleasepool { NSString *str1=@"this is string A"; NSString *str2=@"this is string B"; NSString *temp; NSComparisonResult compareResult; //01.计算字符串中字符个数 NSLog(@"字符串长度:%@的长度为%lu",str1... 阅读全文
posted @ 2014-02-12 22:40 清山博客 阅读(241) 评论(0) 推荐(0)
摘要: #import int main(int argc, const char * argv[]){ @autoreleasepool { /* Object-C中的数字对象: 1.int,float,long,double等都是Object-C中的基本数据类型,不是对象,也就是说不能够向他们发送消息。 2.有时需要将值类型作为对象使用,如NSArray,要求存储的必须是对象,因此不能直接将基本数据类型放入数组。 3.如果需要存储基本数据类型(包括char),可以使用NSNumber类。 ... 阅读全文
posted @ 2014-02-12 22:01 清山博客 阅读(851) 评论(0) 推荐(0)
摘要: 效果图: 百度地图-驾车/公交查询 线路查询 从 到 驾车公交 ... 阅读全文
posted @ 2014-01-23 22:35 清山博客 阅读(470) 评论(0) 推荐(0)
摘要: 一、备份数据库1.在图形工具中,如sqldeveloper,pl/sqldeveloper用以下这句查找空表select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0;2.把第一步执行得到的结果当用sql语来再次执行3.到oracle服务器上执行备份语句. 运行-cmd 执行下面命今 exp 用户名/密码@数据库实例 file=备份文件存放路径 owner=用户名例: exp ezeip/123456@orcl file=d:\bak.dmp o 阅读全文
posted @ 2013-12-27 20:00 清山博客 阅读(481) 评论(0) 推荐(0)
摘要: 第一步:.将代码高亮渲染第二步:jquery Tab输出;第三步:点击Tab切换时,将代码块刷新;参考:http://jtmorris.net/2013/06/codemirror-editor-not-displaying-default-value/ 阅读全文
posted @ 2013-12-23 13:35 清山博客 阅读(278) 评论(0) 推荐(0)
摘要: 1.建表语句及测试数据: --创建表ACREATE TABLE A( A1 int NULL, A2 nvArchAr(50) NULL, A3 decimAl(18, 0) NULL) --测试数据INSERT INTO A VALUES (1,'A1',1)INSERT INTO A VALUES (2,'A2',1)INSERT INTO A VALUES (3,'A3',1) --创建表BCREATE TABLE B( B1 int NULL, B2 nvArchAr(50) NULL, B3 decimAl(18, 0) NULL) - 阅读全文
posted @ 2013-12-03 20:14 清山博客 阅读(8156) 评论(0) 推荐(0)
摘要: 雅虎天气API调用:1.调用方法:http://weather.yahooapis.com/forecastrss?w=2502265&u=c,绿色字体为城市代号,u=c表示取摄氏度。2.如何获取城市代码:(以广州为例)http://sugg.us.search.yahoo.net/gossip-gl-location/?appid=weather&output=xml&command=广 参数:output:输出数据格式,可以是xml或json,默认为xml; command:要查询的城市名称 可能会出现多个项,像这样: 如果是匹配的“广州”关键字,则就只有广州市的c 阅读全文
posted @ 2013-11-18 18:15 清山博客 阅读(5021) 评论(1) 推荐(0)
摘要: using System;using System.IO;using System.Linq;using System.Net;using System.Text;using System.Text.RegularExpressions;namespace Whir.Software.DocumentDownLoader.Library{ /// /// 模拟HTTP操作 /// public class HttpOperater { /// /// 发起Http请求 /// /// ... 阅读全文
posted @ 2013-11-08 17:21 清山博客 阅读(222) 评论(0) 推荐(0)
摘要: using System;using System.IO;using System.Linq;using System.Net;using System.Text;using System.Text.RegularExpressions;namespace Whir.Software.Documen... 阅读全文
posted @ 2013-11-08 17:21 清山博客 阅读(231) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 58 下一页