publicclass在已排序好的数组找两个数a加b等于给定的N{ publicstaticvoidmain(String[]args){ /** *初始化参数Result为结果值 *num是测试数组 *start开始游标,end结束游标 */ intResult=15; int[]num={1,2,4,7,11,15}; intstart=0,end=num.length-1; //从数组的两端开..
分类:
编程语言 时间:
2014-10-15 22:10:42
阅读次数:
164
taobao.trades.sold.get 取得交易列表从店铺取得时间taobao.shop.get (nick,field)shop.created循环读取从开店时间到当前时间的所有交易taobao.trades.sold.get(start_created,end_created,field)...
分类:
其他好文 时间:
2014-10-15 20:53:11
阅读次数:
211
1、IF...ELSE (sql server没有end,oracle中有)DECLARE @co INTSET @co=(SELECT COUNT(1) FROM HGOS_UC.dbo.Emp_Ora_Role eor WHERE eor.EmpId=539 AND eor.DepId=35)I...
分类:
数据库 时间:
2014-10-15 20:48:11
阅读次数:
279
//第一步 try ? wordapplication1.Connect; except ? wordapplication1.Disconnect; ? messagedlg(‘请安装Office中的Word软件!‘,mterror,[mbok],0); ? exit; end; // 不显示word wordapplication1.Visible:=...
eg:数据库表对象
@interface Meditation :
NSManagedObject
@property (nonatomic,
retain) NSString * order;//用来排序的属性值,用0、1、2、3...排序
@end
//在这个方法里操作
- (void)tableView:(UITableView *)tableView ...
分类:
编程语言 时间:
2014-10-15 18:22:01
阅读次数:
113
--如果 成绩>100 优
--如果成绩>90 良
select * from TblScore
select 英语成绩=
(case when tEnglish>90 then '良' when tEnglish>100 then'优' end),数学成绩=(case when tMath>90 then '良' when tMath>100 then'优' end) fr...
分类:
数据库 时间:
2014-10-15 14:56:30
阅读次数:
159
使用UIImagePickerController 进行录制
#import "ViewController.h"
#import
#import
@interface ViewController ()
- (IBAction)videoRecod:(id)sender;
@end
@implementation ViewController
- (void)viewDid...
分类:
其他好文 时间:
2014-10-15 00:30:09
阅读次数:
242
current遍历,整个数组序列,current指1不动,current指0,与begin交换,而后current++,begin++,current指2,与end交换,而后,current不动,end--。http://blog.csdn.net/v_july_v/article/details/...
分类:
其他好文 时间:
2014-10-14 20:32:19
阅读次数:
133
第一、strong关键字与retain关似,用了它,引用计数自动+1
如果person定义如下:
@interface Person : NSObject
@property(nonatomic,strong)Book *book1;
@end @autoreleasepool {
p1=[[Person alloc] init];
Book *book...
分类:
其他好文 时间:
2014-10-14 19:57:39
阅读次数:
207
效果图:其中图片是可以自己动的。当然,点击白色的小圆点,也是可以滑动的。上代码。.h#import @interface RootViewController : UIViewController{ UIScrollView *scoreView;}@end.m- (void)viewDidL...
分类:
其他好文 时间:
2014-10-14 19:36:59
阅读次数:
144