写在前面
这一篇我个人认为还是很常用的,一开始也是实习的时候学到的,所以我觉得实习真的是一个快速学习工程技巧的途径。
提醒:这篇教程比较复杂,如果你不熟悉NGUI、iTween、C#的回调函数机制,那么这篇文章可能对你比较有难度,当然你可以挑战自我。
言归正传,消息框,也就是Message Box,在Windows下很常见,如下图:
在游戏里...
分类:
其他好文 时间:
2014-05-10 09:23:56
阅读次数:
491
在android开发中经常会使用异步请求数据,通常会使用handler或者AsyncTask去做,handler 配合message
使用起来比较麻烦,AsyncTask 线程池只允许128个线程工作,会有溢出的问题,(当然一般情况不会有那么多线程同时工作的)所以写了这个代码,还望高手指正!
[Ja...
分类:
移动开发 时间:
2014-05-09 11:28:18
阅读次数:
433
-switch语句能作用在byte上,能否作用在long上,能否作用在String上?-在switch(expr1)中,expr1只能是一个整数表达式或者枚举常量,整数表达式可以是int基本类型或Integer包装类型,由于byte,short,char都可以隐式转换为int,所以这些类型以及这些类...
分类:
编程语言 时间:
2014-05-08 20:32:56
阅读次数:
371
C标准库了提供了 atoi, atof, atol, atoll(C++11标准)
函数将字符串转换成int,double, long, long long 型。 char str[] = "15.455"; double db; int i;
db = atof(str); /...
分类:
其他好文 时间:
2014-05-08 19:45:22
阅读次数:
246
编程相关注册中断int request_irq( unsigned int irq,
irq_handler_t handler, unsigned long flags, const char *name, void
*dev) typede...
分类:
系统相关 时间:
2014-05-07 17:58:00
阅读次数:
415
1、数据类型 Java的数据类型分为基本数据类型和引用数据类型。 a, 基本数据类型包括:byte,
boolean, char, short, int, long, float, double; b, 每个基本数据类型都有相应的引用类型,比如int ->
Integer,char -> ch...
分类:
编程语言 时间:
2014-05-07 17:54:03
阅读次数:
417
这题明明是一个简单的类似约瑟夫环的问题,但是由于细节问题迟迟不能得到正确结果,结果比赛完几分钟才改对。。耻辱。代码:#include #include
#include #include #include #define ll long longusing namespace std;#define...
分类:
其他好文 时间:
2014-05-07 17:35:47
阅读次数:
290
╮(╯▽╰)╭水题
相连的相同色块缩成点,和相邻的不同色块建边。
以每一个点为起点bfs,求最小答案。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define inf 0x3f3f3f3f
#define ll long long
#define...
分类:
其他好文 时间:
2014-05-07 08:15:59
阅读次数:
328
Nido Framework at Use - The diagram below shows how Nido Framework reduces the size of your DAL and BLL.
Nido Framework is a reusable and highly generic code library developed using Microsoft ....
分类:
其他好文 时间:
2014-05-07 07:22:40
阅读次数:
333
线程相关操作说明 一 pthread_t
pthread_t在头文件/usr/include/bits/pthreadtypes.h中定义: typedef unsigned long int
pthread_t; 它是一个线程的标识符。 二 pthread_create 函数pthre...
分类:
编程语言 时间:
2014-05-06 09:46:36
阅读次数:
505