Android自定义spinner(背景、字体颜色) (2012-07-04 17:04:44)1、准备两张图片,并做好9.png2、在drawable中定义spinner_selector.xml3、style中定义4、调用5、在layout中定义simple_spinner_item.xml6、...
分类:
移动开发 时间:
2014-07-07 10:41:51
阅读次数:
361
iOS Dev (66) 一个手机游戏程序的基本考虑
博客:http://blog.csdn.net/prevention作者:大锐哥摘自:Learn iPhone and iPad cocos2d Game Development
1 基本流程内的 handler
程序启动
applicationDidFinishLaunching
程序切到后台
applicationDidE...
分类:
移动开发 时间:
2014-07-03 18:44:47
阅读次数:
236
iOS Dev (67) 单例的实现
博客:http://blog.csdn.net/prevention作者:大锐哥摘自:Learn iPhone and iPad cocos2d Game Development
实现
在 .m 文件中
static MyManager *sharedManager = nil; +(MyManager*) sharedManager
{
...
分类:
移动开发 时间:
2014-07-03 18:44:09
阅读次数:
202
题目如下:
Problem D: XYZZY
ADVENT: /ad?vent/, n.
The prototypical computer adventure game, first designed by Will Crowther on the PDP-10 in the mid-1970s as an attempt at computer-refereed fantasy...
分类:
其他好文 时间:
2014-07-03 18:09:47
阅读次数:
211
《编程导论(Java)·3.1.1 三种结构、Java语句》
【p94】计算机科学家Corrado Bohm和Giuseppe Jacopini证明,使用顺序(sequencing),选择(alternation)和循环(iteration)这三种结构就足以表达所有程序的本质。世事如棋局局新,每一局棋都是新局,世界上的程序也一样,无穷无尽极富变化,然而它受十分简单的规则(三种基本结构)所支配。…...
分类:
其他好文 时间:
2014-07-03 16:28:13
阅读次数:
286
This is a simple circle as a drawable in Android.```html ```
分类:
移动开发 时间:
2014-07-03 12:48:05
阅读次数:
151
http://ionicframework.com/blog/angularjs-console/1: Access ScopesWe can access any scope (even isolated ones!) on the page with a simple JS one-liner:...
分类:
Web程序 时间:
2014-07-02 14:53:37
阅读次数:
443
感觉这种算法还是比较局限的吧,重复搜索是一个不好的地方,而且需要高效的估值函数来进行强剪枝,这点比较困难。
迭代搜索深度是一个比较炫酷的搜索方式,不过有点拿时间换空间的感觉。
首先迭代深度比较搓的写法是,首先设置一个阀值MaxH,初始为最小值。
当在搜索深度Depth
另外一种比较吊的写法是二分搜索深度,若搜到则减小阀值,否则增大阀值。
总之,迭代深度搜索就是通过改变深搜的深度来寻找最...
分类:
其他好文 时间:
2014-07-02 09:01:04
阅读次数:
247
Idiomatic Phrases Game
Time Limit: 2 Seconds Memory Limit: 65536 KB
Tom is playing a game called Idiomatic Phrases Game. An idiom consists of several Chinese characters and has a certain me...
分类:
其他好文 时间:
2014-07-02 08:11:52
阅读次数:
167
cocos2dx框架已经提供了很多场景切换的类,但是一些自定义的场景切换,只有自己实现了。下面是实现的类。这里设计的分辨率是750*500.请根据实际的要求调整。
头文件
#ifndef _TRANSITION_GAME_H_
#define _TRANSITION_GAME_H_
#include
namespace cocos2d
{
class CCTransi...
分类:
其他好文 时间:
2014-07-02 07:00:07
阅读次数:
271