1.应用生命周期 Not running?非运行状态Not running ?→ ?Inactive → Active ?→ ?Background?→ Suspended? Inactive? 前台非活动状态 Active 前台活动状态 Background 后台状态 Suspended 挂起状态 非...
分类:
其他好文 时间:
2015-05-11 00:10:54
阅读次数:
156
首先还是就我个人的理解,讲讲游戏引擎的处理流程。其实游戏逻辑简单化就是一个死循环,如下:1 2 bool game_is_running = true;3 4 while( game_is_running ) { 5 update_game(); 6 d...
分类:
其他好文 时间:
2015-05-10 20:12:01
阅读次数:
374
执行Maven Install打包的时候,出现以下错误信息:[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are runn...
分类:
其他好文 时间:
2015-05-10 15:45:33
阅读次数:
177
利用dumpsys这个工具查看activity相关信息adb shell dumpsys activity > 1.log //把相关信息保存到1.log中adb shell dumpsys activity | grep "Running activities" -A 7 //-A 7表示显示.....
分类:
移动开发 时间:
2015-05-10 14:13:49
阅读次数:
215
OLE DB Command transformation component能够引用参数,逐行调用sqlcommand,This transformation is typically used for running parameterized queries。1,自定义属性OLE DB Com...
分类:
数据库 时间:
2015-05-09 13:10:39
阅读次数:
166
We can never be satisfied with the program just only running correctly.The reduction summation program described in previous blog post needs to be opt...
分类:
其他好文 时间:
2015-05-08 23:47:38
阅读次数:
130
#include #include void main(){ int i=0,j=0,finish=0,n=0,k=0,l,m; int start,temp,max=1,min,respond[24]; int reach[24],running[24]; FILE *fp; ...
分类:
其他好文 时间:
2015-05-08 09:19:03
阅读次数:
136
1:Mongod日志warning:mongodb日志显示如下:WARNING: You are running on a NUMA machine.We suggest launching mongod like this to avoid performance problems:numactl...
分类:
数据库 时间:
2015-05-07 12:08:06
阅读次数:
825
VMware 和 Hyper-V 不能共存问题报错如下:VMware Workstation and Hyper-V are notcompatible. Remove the Hyper-V role from the system before running VMwareWorkstation...
分类:
系统相关 时间:
2015-05-06 06:52:58
阅读次数:
159
题意:
一只奶牛可以跑n分钟,疲劳度上限是m。
接下来是每分钟可以跑a[i]米。
然后对于每分钟可以选择跑或者休息,跑的话疲劳度增加一点疲劳度。
休息的话每分钟减少一点疲劳,但是如果选择休息,那么必须休息至疲劳度为零。
问n分钟后,疲劳度为0的,所能跑的最远距离。
思路:
水dp,dp[i][j]代表前i分钟疲劳度为j跑的最远距离。
状态转移就是跑或者休息。
代码:
#incl...
分类:
其他好文 时间:
2015-05-04 20:10:52
阅读次数:
102