Description
In the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is written a positive integer. Players take turns removing a card from either end...
分类:
其他好文 时间:
2014-08-13 01:18:05
阅读次数:
209
二维码又称QR Code,QR全称Quick Response,是一个近几年来移动设备上超流行的一种编码方式,它比传统的Bar Code条形码能存更多的信息,也能表示更多的数据类型
分类:
其他好文 时间:
2014-08-13 01:04:34
阅读次数:
272
撸完了登录模块,接着撸商品添加,和商品列表模块:先亮出数据库: 1 DROP TABLE IF EXISTS products; 2 CREATE TABLE products ( 3 id varchar(100) NOT NULL, 4 name varchar(100) DEFAULT...
分类:
其他好文 时间:
2014-08-13 00:34:15
阅读次数:
381
文本的添加在quick中被封装在ui类中,它可以创建EditBox,菜单以及文本,文本总得来说可以创建TTF和BMFont两种。
api对于它的说明很详细,ui.newBMFontLabel(params),参数中
text: 要显示的文本font: 字体文件名align: 文字的水平对齐方式(可选)x, y: 坐标(可选)
所以我们创建一个文本可以使用这样的代码,
f...
分类:
其他好文 时间:
2014-08-12 19:06:44
阅读次数:
288
//快速排序思想:选择数组最后一个数(key),比它小的排他前面 ( key放中间 ) 比它大的排后面,
然后递归 终止条件(数组只有一个数)
public class Sort> { //能排序的都是能比较的,所以必须继承java.lang.Comparable
public void quick(T[] array){
sort(array,0,array.length...
分类:
编程语言 时间:
2014-08-12 18:59:34
阅读次数:
181
首先,下载:install_flash_player_11_linux.i386.tar.gz解压文件: tar -xvfinstall_flash_player_11_linux.i386.tar.gz解压后得到: 文件libflashplayer.so和文件夹 usr/将usr/下到内容拷贝到目...
分类:
系统相关 时间:
2014-08-12 18:10:54
阅读次数:
363
这两天最终闲了一下,就顺手又把quick捡起来又学了学,一直都认为quick比cocos2dx那套lua绑定要方便很多,今天试了下android返回键的监听,还是挺好弄的,所以就有了这篇。首先说明一下使用的quick版本号——2.2.5。直接上代码function MainScene:addBack...
分类:
移动开发 时间:
2014-08-12 16:46:14
阅读次数:
221
Linux下编程难免要开启多个vim共同编辑同一个文件,这时再次保存就会出现:swap file "*.swp" already exists![O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:原因:使用...
分类:
其他好文 时间:
2014-08-12 00:19:03
阅读次数:
675
Esspe-PeaseeEsspe-Peasee is an ancient game played by children throughout the land of Acmania. The rules are simple:A player simply quibs the yorba at...
分类:
其他好文 时间:
2014-08-11 23:45:23
阅读次数:
297
《quick cocos2d-x Xcode下省去clean,让修改的脚本生效》项目 target build phases 点击build phase的空白区域 选择Editor Add Build Phase Add Run Script Build Phase编写脚本:顺序调整:...
分类:
其他好文 时间:
2014-08-11 21:04:12
阅读次数:
264