800602分苹果难度级别:B; 运行时间限制:1000ms; 运行空间限制:51200KB; 代码长度限制:2000000B试题描述把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。输入第一行是测试数据的数目t,以...
分类:
移动开发 时间:
2015-07-24 11:59:06
阅读次数:
218
self.slider=[[UISlider alloc]initWithFrame:CGRectMake(50, 100, 200, 50)];//self.slider.tintColor=[UIColor blueColor];//已经使用进度条颜色 //数值减小(球左边)颜色 self......
分类:
移动开发 时间:
2015-07-24 11:57:41
阅读次数:
224
点击Project->Properties->Builders->New,新建立一个Builder。在弹出的对话框上面点击Program
在弹出的对话框【Edit Configuration】中,配置选项卡【Main】:Location中需要填入nkd-build.cmd的路径(NDK安装目录下)。Working Diretcoty中需要填入TestNDK的工程根目录。
配置选项卡【Refresh】...
分类:
移动开发 时间:
2015-07-24 10:50:28
阅读次数:
133
??
《Android ListView下拉/上拉刷新:设计原理与实现》
Android上ListView的第三方开源的下拉刷新框架很多,应用场景很多很普遍,几乎成为现在APP的通用设计典范,甚至谷歌官方都索性在Android SDK层面支持下拉刷新,我之前写了一篇文章《Android SwipeRefreshLayout:谷歌官方SDK包中的下拉刷新》专门介绍过(链接地址:http://bl...
分类:
移动开发 时间:
2015-07-24 10:51:42
阅读次数:
272
导言:
Android应用在CPU占用,内存消耗方面的性能指标是影响产品质量的重要因素,由于QQ管家,360手机助手等应用都提供直观的内存消耗,流量监控功能,致使用户比以往更加关注软件的性能,并以此进行软件选用的决策。
目前,已经有很多可以监控android app 性能的工具可以供开发人员使用,如:基于Eclipse插件体系的MAT,其通过生成.hprof文件对...
分类:
移动开发 时间:
2015-07-24 10:50:36
阅读次数:
442
郝萌主倾心贡献,尊重作者的劳动成果,请勿转载。如果文章对您有所帮助,欢迎给作者捐赠,支持郝萌主,捐赠数额随意,重在心意^_^ 我要捐赠: 点击捐赠Cocos2d-X源码下载:点我传送游戏官方下载:http://dwz.cn/RwTjl游戏视频预览:http://dwz.cn/RzHHd游戏开发博客:http://dwz.cn/RzJzI游戏源码传送:http://dwz.cn/Nret1A.NSO...
分类:
移动开发 时间:
2015-07-24 10:47:00
阅读次数:
190
public void onDraw (Canvas canvas) {
Rect targetRect = new Rect(50, 50, 1000, 200);
Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
paint.setStrokeWidth(3);
paint.s...
分类:
移动开发 时间:
2015-07-24 10:44:36
阅读次数:
143
#import "RootViewController.h" RootViewController *rootVC=[[[RootViewController alloc] init] autorelease]; self.window.rootViewController=rootVC;
分类:
移动开发 时间:
2015-07-24 10:42:15
阅读次数:
209
//// main.m// LesssonScale//// Copyright (c) 2015年 池海涛. All rights reserved.//#import int main(int argc, const char * argv[]) { 以10为例,不同进制的表示...
分类:
移动开发 时间:
2015-07-24 10:39:25
阅读次数:
123
先要遵循协议 设置代理 self.jiagetextfield.delegate=self; self.mingchengtextfield.delegate=self;//释放第一响应者-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent ...
分类:
移动开发 时间:
2015-07-24 10:41:11
阅读次数:
117
#import "myView.h"//使用这个myview来代替控制器自带的view@property(nonatomic,retain)myView *myview;- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *...
分类:
移动开发 时间:
2015-07-24 10:38:46
阅读次数:
207
http://www.cnblogs.com/Gaojiecai/archive/2011/12/10/2283156.htmlhttp://www.2cto.com/kf/201205/131876.htmlhttp://blog.csdn.net/woaieillen/article/detai...
分类:
移动开发 时间:
2015-07-24 10:36:46
阅读次数:
145
{//开始触摸点 CGPoint _startPoint;}- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { // Initialization code //给testVIew加上颜...
分类:
移动开发 时间:
2015-07-24 10:36:41
阅读次数:
112
windos分析环境搭建 温馨提示:今后我们用到的环境都会采用windows xp 32位系统 1. jdk Oracle官网下载处:http://www.oracle.com/technetwork/java/downloads/index.html 下面的是我自己找的jdk: jdk8(Win7...
分类:
移动开发 时间:
2015-07-24 10:36:03
阅读次数:
197
先上个优化之后的fps图,丝滑流畅;具体实现请看最终优化后的app背景:一个通讯录app(开源地址),每次登陆时,针对每个用户,如果头像图片不在本地,则生成一个异步下载任务(AsyncTask)。tips:判断图片是否在本地,咱使用的方法:根据该图片的url,比如http://images0.cnb...
分类:
移动开发 时间:
2015-07-24 10:32:45
阅读次数:
154
Delicious Apples Problem's Link: http://acm.hdu.edu.cn/showproblem.php?pid=5303 Mean:一条长为L的环形路上种着n棵苹果数。第i棵苹果数的位置在xi,有ai个苹果,苹果树的位置按顺时针顺序给出,且都是整数...
分类:
移动开发 时间:
2015-07-24 10:31:45
阅读次数:
180
- (void)didReceiveMemoryWarning//内存警告{ [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. NSLog(@"内存快爆了"); //判断是否加载过....
分类:
移动开发 时间:
2015-07-24 10:29:55
阅读次数:
213