上一页 1 ··· 109 110 111 112 113 114 115 116 117 ··· 154 下一页
摘要: 到眼下我们已经学习了有 坐标系统 内存管理 UI系统 事件处理 几何图形 今天我们来学习动作管理OK 我们来看看类结构图 CCAction 全部动作的基类 以下派生了三个子类:CCFiniteTimeAction,CCFollow,CCSpeed 这些我们先不看 我们主要来介绍一下瞬时动作, CCA 阅读全文
posted @ 2017-05-21 09:29 jhcelue 阅读(166) 评论(0) 推荐(0)
摘要: 给两个已经排好序的数组。这两个数组的长度可能不相等。怎样将他们合并? package airth; public class TestMergeArray { /** * 功能: * 作者: jiangfuqiang * 创建日期:2014-10-13 * 改动者: mender * 改动日期: m 阅读全文
posted @ 2017-05-21 08:36 jhcelue 阅读(235) 评论(0) 推荐(0)
摘要: 处理JSON字符串时,一直出错,写个样例后发现原来是没有弄清楚数据的格式问题。 实现的是 JSONString 转换成java对象 或是 list列表 实例类 News package lyx.entity; /** * @author lyx * * 2015-8-10上午10:14:38 * * 阅读全文
posted @ 2017-05-20 21:21 jhcelue 阅读(377) 评论(0) 推荐(0)
摘要: Material Theme提供了一下功能:1、系统widgets能够设置调色板2、系统widgets的触摸反馈3、Activity过渡动画 你能够依据你品牌的色彩来定义Material Theme。能够使用Material Theme的色彩为status bar、action bar着色。參考下图 阅读全文
posted @ 2017-05-20 20:27 jhcelue 阅读(226) 评论(0) 推荐(0)
摘要: https://github.com/michaelfairley/mincemeatpy https://github.com/denghongcai/mincemeat-node https://github.com/michaelfairley/mincemeatpy https://gith 阅读全文
posted @ 2017-05-20 19:09 jhcelue 阅读(242) 评论(0) 推荐(0)
摘要: 题目链接:点击打开链接 题意: 给定n个字符串,k局游戏 对于每局游戏,2个玩家轮流给一个空串加入一个小写字母使得加完后的字符串不是n个字符串的前缀。 输家下一轮先手 问是先手必胜还是后手必胜 思路: 对于第一局游戏,若先手能到达必败态和必胜态,则先手会一直输到倒数第二局然后最后一局必胜 所以此时是 阅读全文
posted @ 2017-05-20 19:06 jhcelue 阅读(311) 评论(0) 推荐(0)
摘要: 1.首先。select top使用方法: 參考问题 select top n * from和select * from的差别 select * from table -- 取全部数据。返回无序集合 select top n * from table -- 依据表内数据存储顺序取前n条,返回无序集合 阅读全文
posted @ 2017-05-20 19:04 jhcelue 阅读(10186) 评论(0) 推荐(0)
摘要: 信号量(Semaphore)。有时被称为信号灯。是在多线程环境下使用的一种设施, 它负责协调各个线程, 以保证它们可以正确、合理的使用公共资源。 一个计数信号量。从概念上讲,信号量维护了一个许可集。如有必要。在许可可用前会堵塞每个 acquire(),然后再获取该许可。每个 release() 加入 阅读全文
posted @ 2017-05-20 17:44 jhcelue 阅读(177) 评论(0) 推荐(0)
摘要: Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". click to show clarificatio 阅读全文
posted @ 2017-05-20 16:57 jhcelue 阅读(165) 评论(0) 推荐(0)
摘要: 思路:将UIImage转换成NSData,然后插入到NSMutableDictionary中。读取时,用NSData读出来,然后再转换成UIImage -存储 UIImage *image = [self getPicture: id]; NSData *imageData = UIImagePNG 阅读全文
posted @ 2017-05-20 15:37 jhcelue 阅读(248) 评论(0) 推荐(0)
上一页 1 ··· 109 110 111 112 113 114 115 116 117 ··· 154 下一页