1.定义UITexture二维数组public UITexture[,]
m_UITexture;2.在 void start() 中分配内存m_UITexture = new UITexture[30,
50];3.遍历排列的UITexture//用UITexture数组获取UITexture ....
分类:
其他好文 时间:
2014-05-16 01:17:09
阅读次数:
316
#ifndef SWAP_H_INCLUDED#define
SWAP_H_INCLUDED#include using namespace std;struct Job{ string name; int
salary;};template void Swap(T &a, T &b);...
分类:
其他好文 时间:
2014-05-16 01:14:38
阅读次数:
340
这篇文章决定对最近一个单机版Web程序用到的东西总结一下。一、反射Linq之OrderBy
动态Linq结合反射对某字段排序:namespace 动态Linq{ class Program { static void Main(string[]
args) ...
分类:
其他好文 时间:
2014-05-16 00:40:13
阅读次数:
414
题目:
链接:点击打开链接
题意:
DFS搜索
算法:
dfs
思路:
简单题
代码:
#include
#include
#include
using namespace std;
int w,h;
char s[30][30];
int vis[30][30];
int cnt;
void dfs(int x,int y)
{
if...
分类:
其他好文 时间:
2014-05-16 00:02:10
阅读次数:
438
CCMenu是一个菜单项的容器,用来装载各种菜单项, 菜单项可以是图片、系统字、或者自定义字体。
菜单项常用设置:
void alignItemsVertically(); //垂直方向默认间隙排列, 5个像素
void alignItemsVerticallyWithPadding(float padding);//垂直方向以padding间隙排列
void alignItemsHor...
分类:
其他好文 时间:
2014-05-15 23:35:31
阅读次数:
374
//使用动态分配内存时,要包含头文件
//malloc的参数为要分配的内存的字节数
//其返回所分配内存的第一个字节的地址
//返回类型是void*,但实际中常常转换为具体类型便于使用
//如果因某种原因而不能分配将返回NULL指针,所以使用时应验证是否分配成功
int *pNumber1=(int *)malloc(100*sizeof(int));
//callo...
分类:
其他好文 时间:
2014-05-15 23:21:54
阅读次数:
338
Memory management1.listvmastatic void
mtest_dump_vma_list(void){ struct task_struct *task = current; //get the
task_struct of the current process stru...
分类:
系统相关 时间:
2014-05-15 22:29:30
阅读次数:
555
//功能:二分查找import java.util.*;public class Demo1 {
public static void main(String[] args) { int arr[]={2,5,7,12,25};//定义arr数组并赋值
System.out.print("请输入你需...
分类:
编程语言 时间:
2014-05-15 22:11:22
阅读次数:
421
基本数据类型的赋值与运算Eg1: public class Ex1{ public
static void main(String arg []){ boolean b = true ; System.out.println(b); } }
Eg2: public c...
分类:
其他好文 时间:
2014-05-15 22:04:09
阅读次数:
357
看这个代码:
public class D
{
@Override
public String toString()
{
return "obj:"+this;
}
public static void main(String[] args)
{
System.out.println(new D());
}...
分类:
其他好文 时间:
2014-05-15 20:18:38
阅读次数:
277