/当游戏中需要进行滚动计分时为了获得滚动数字我们可以首先写一个计分函数放入update中进行调用每帧加一个固定的分数//加入分数记录框autoframCache=SpriteFrameCache::getInstance();framCache->addSpriteFramesWithFile("config.plist","config.png");autofram=framCache-..
分类:
其他好文 时间:
2015-03-28 19:02:40
阅读次数:
156
Problem Description
There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 <= Ki <= N) on every floor.The lift have just two buttons: up and down.When you at floor i,if you press the button "UP" , you will go u...
分类:
编程语言 时间:
2015-03-28 15:47:08
阅读次数:
262
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:
其他好文 时间:
2015-03-28 15:46:40
阅读次数:
119
设计一个工资类(Salary
class Salary 0
{
private:
double salarys[50]; //多人的工资
int number; //实际人数
};
要设计的成员函数有:
void set_salarys( ):输入职工工资(输入-1标志着工资输入结束),工资保存到salary数组中,实际人数保存到number中;
void...
分类:
编程语言 时间:
2015-03-28 14:26:45
阅读次数:
137
***************************************** 变量赋值方式*****************************************oracle中变量赋值方式是值拷贝而非引用 declare v_number1 number:=100; v_number...
分类:
数据库 时间:
2015-03-28 14:18:51
阅读次数:
154
1. 基本数据类型 Number 数字型 Int 整数型 Pls_integer 整数型,产生溢出时出现错误 Binary_integer 整数型,表示带符号的整数 Char 定长字符型,最大255个字符 Varchar2 变长字符型,最大2000个字符 Long 变长字符型,最长2GB Date ...
分类:
数据库 时间:
2015-03-28 14:14:33
阅读次数:
140
数据类型转换函数 PL/SQL程序中提供了很多函数供扩展功能,除了标准SQL语言的函数可以使用外,最常见的数据类型转换函数有以下3个。 To_char:将其他类型数据转换为字符型。 To_date:将其他类型数据转换为日期型。 To_number:将其他类型数据转换为数值型。系统输出打...
分类:
数据库 时间:
2015-03-28 14:08:07
阅读次数:
184
Given a text file file.txt, transpose its content.You may assume that each row has the same number of columns and each field is separated by the ' ' c...
分类:
其他好文 时间:
2015-03-28 11:23:49
阅读次数:
126
// Create By 郭仔 2015年3月28日9:34:04
分类是OC特有的属性。应用场景:为类库中的类扩从方法
下面通过两个实例来说明:
1.给NSString增加一个类方法:计算某个字符串中阿拉伯数字的个数
NSString+Number.h文件中内容:
+ (int)numberCountOfString:(NSString *)str;
NSString+Num...
分类:
其他好文 时间:
2015-03-28 10:09:06
阅读次数:
136
Lua有7种数据类型,分别是nil、boolean、number、string、table、function、userdata。这里我总结一下Lua的string类型和string库,复习一下,以便加深记忆。个人认为string是Lua编程使用数据结构的时候,重要性仅次于table的类型。十分重.....
分类:
其他好文 时间:
2015-03-27 23:49:28
阅读次数:
203