Unity3D本身自带有控制脚本执行先后顺序的方法:Edit---> Project
Settings---> Script Execution Order --->值越小脚本会越先被执行
分类:
其他好文 时间:
2014-05-01 13:31:42
阅读次数:
404
本题可以使用长整形来记录数据的,因为最长不过10^8,但是如果把这题当做是无穷大数来做的话,难度指数就直线上升了。
这里给出使用string来做无穷大减法的解法。
要处理的问题:
1 string大小比较问题,不能使用原始的<号
2 如何进位的问题
3 符号问题,因为这里只求差异就可以了,所以返回绝对值就够了。
这样做本题还是有一定难度, 而且可以锻炼到一些高级点的知识的运用,挺好。...
分类:
其他好文 时间:
2014-04-29 13:46:22
阅读次数:
277
在做活动项目时需要对时间的限制 就写模仿 crontab 写了一个
# utf-8
# '* * * * *' -> 分 时 日 月 周
# '* * * 1-3 *' -> 分 时 日 月 周
# '* * * 1,2,3 *' -> 分 时 日 月 周
# 01-59 01-23, 01-31, 01-12, 0-6
# simple : CrontabUtil....
分类:
其他好文 时间:
2014-04-29 13:44:20
阅读次数:
312
利用cvs提交项目时项目提交是一个空文件夹,报错如下;
删除这个项目分享是,报错:
原因:这是文件系统不同步的问题,是因为在eclipse或mycelipse之外对工程中的resource进行修改引起的(或者是由不同的系统间对文件进行修改引起的);
解决办法:上传前和更新前都刷新一下工程,右键项目名---->Refresh
这个问题拖了几天没有得到解决,本来以为没有...
分类:
其他好文 时间:
2014-04-29 13:43:21
阅读次数:
786
一开始由这段代码引发的纠结
get_base(current->ldt[1])
下面是各个相关的代码,摘自不同的header files。。。
current是指向当前task的指针
struct desc_struct ldt[3];
struct desc_struct {
unsigned long a,b;
} ;
#define _get_...
分类:
系统相关 时间:
2014-04-29 13:42:20
阅读次数:
546
冒泡排序,往两个方向泡,一个往小泡,一个网大泡
#include
#include
#include
void bubble_sort(int *a,int n){
int temp;
for(int i=0;i<n;i++)
for(int j=0;ja[j+1]){
temp=a[j];
a[j]=a[j+1];
...
分类:
其他好文 时间:
2014-04-29 13:28:21
阅读次数:
364
JQuery原型对象(续)
(4).each(callback,args)
迭代JQuery对象上的元素并调用callback参数,如果某次迭代中callback返回false,停止迭代.args为callback的参数,args必须为数组.在callback中this引用的当前迭代的元素.
Test_HTML
body>
div id= "div1">div1div >...
分类:
Web程序 时间:
2014-04-29 13:26:21
阅读次数:
387
#include
using namespace std;
template
class testClass{
public:
static int _data;
};
int testClass::_data = 1;
int testClass::_data = 2;
int main()
{
cout ::_data << endl;
cout ::_data << ...
分类:
其他好文 时间:
2014-04-29 13:21:20
阅读次数:
410
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
void func()
{
string url;
cout << "输...
分类:
Web程序 时间:
2014-04-29 13:21:20
阅读次数:
506
question:
This Android SDK requires Developer Toolkit version 22.6.2 or above
please update ADT to the latest version
answer:
1.Start Eclipse, then select Help > Install New Software....
2....
分类:
移动开发 时间:
2014-04-29 13:18:20
阅读次数:
454