1.启动Activity:onCreate-->onStart-->onResume;2.点击back后:onPause-->onStop-->onDestroy;3.长按Home键:onCreate-->onStart-->onResume;4.按Home键Activity状态转换:退出应用:on...
分类:
其他好文 时间:
2014-08-12 18:52:44
阅读次数:
204
using System;using System.Threading;using System.Threading.Tasks;namespace Microsoft.AspNet.Identity{ internal static class AsyncHelper { private stat...
分类:
Web程序 时间:
2014-08-12 18:08:14
阅读次数:
278
从Android 4.2开始,Bluetooth stack发生了重大改变:从Bluez换成了由Google和Broadcom联合开发的Bluedroid(当然,核心的部分还是Broadcom 的,Google主要是做了和上层Framework相关的部分)。通过http://source...
分类:
移动开发 时间:
2014-08-12 17:44:15
阅读次数:
411
#include
#include
#include
using namespace std;
void ComStr(char *str, string &s,int m)
{
if (m == 0)
{
cout<<s<<endl;
return ;
}
if (*str != '\0')
{
s.push_back(*str);
ComStr(str+1,s ...
分类:
其他好文 时间:
2014-08-12 17:14:34
阅读次数:
223
class Solution {public: int longestValidParentheses(string s) { vector stack; int maxlen = 0; int curlen = 0; int last ...
分类:
其他好文 时间:
2014-08-12 12:54:04
阅读次数:
169
Time, Delays, and Deferred Work
Dealing with time involves the following tasks, in order of increasing complexity:
? Measuring time lapses and comparing times
? Knowing the cur...
分类:
其他好文 时间:
2014-08-12 00:41:13
阅读次数:
484
boost 循环缓冲区[cpp]view plaincopy#includeint_tmain(intargc,_TCHAR*argv[]){boost::circular_buffercb(3);//Insertsomeelementsintothebuffer.cb.push_back(1);c...
分类:
其他好文 时间:
2014-08-12 00:35:23
阅读次数:
243
汉诺塔问题:P141用两个stack设计一个队列 p142 结合上题,队列实现max操作,要求尽量提高效率。(编程之美)找出二叉树中指定节点的下一个节点(中序后继),假定每个节点有父指针。p154二叉树某两个节点的公共祖先。p155判断T2是否是T1的子树。p159打印二叉树节点数值总和等于某个给....
分类:
其他好文 时间:
2014-08-12 00:13:23
阅读次数:
346
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class Pr...
分类:
其他好文 时间:
2014-08-12 00:06:03
阅读次数:
152
一个DataAbort异常的触发过程://////////////////////////////xxxx.inc_STACK_BASEADDRESS EQU 0x33ff8000_MMUTT_STARTADDRESS EQU 0x33ff8000_ISR_STARTADDRESS EQU 0x33...
分类:
其他好文 时间:
2014-08-11 20:31:12
阅读次数:
195