MSS(Array[],N)//Where N is the number of
elements in array{sum=0; //current summax-sum=0;//Maximum Sumseq-start=0;//start
of the subsequenceseq-end=0;...
分类:
其他好文 时间:
2014-05-23 11:03:58
阅读次数:
221
///
/// 判断手机用户UserAgent
///
///
private bool IsMobile()
{
HttpContext context = HttpContext.Current;
if (context != null)
{
HttpRequest request = context.Request;
i...
分类:
移动开发 时间:
2014-05-23 01:06:25
阅读次数:
258
注册表法window+R
---》输入regedit(点击确定后进入注册表编辑器)需要修改以下两个地方,重启电脑生效:[HKEY_CURRENT_USER\Control
Panel\Colors] "Window"="202 234 206" [HKEY_LOCAL_MACHINE\SOFTWA....
#include
#include
struct test
{
char name[20];
void (*func)(char *);
};
void tttfunc(char *name)
{
printf("current is %d\n",__LINE__);
printf("%s\n",name);
}
int main()
{
struct test ttt=
{
.n...
分类:
系统相关 时间:
2014-05-22 11:25:09
阅读次数:
380
1开机图片:android-logo-mask.pngandroid-logo-shine.png这两个图片一个在上一个在下./out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes/asset...
分类:
移动开发 时间:
2014-05-19 22:42:33
阅读次数:
419
HttpContext.Current.Application:整个应用程序都可以共享的,当然存储的时候应该加锁的。HttpRuntime.Cache与HttpContext.Current.Cache:二者其实是指向的同一对象,区别在于HttpContext与HttpRuntime的实现上。Htt...
分类:
其他好文 时间:
2014-05-19 22:16:56
阅读次数:
298
1. 安装WarmServer(一键式安装apache+php+mysql);2.
将安装后的EclipsePHP工作目录workspace指向WarmServer安装目录下的www目录下即可异常1:Eclipse启动提示javaw.exe
in your current PATH、No java ...
-------------------------------source---------------------------------#include
#include #include #include #include /* 函数声明 */void tty_write_message1(s...
分类:
系统相关 时间:
2014-05-19 10:30:33
阅读次数:
468
//
// get current time, yyyyMMddhhmmss
//
char* curtime( char *p, uint len )
{
if( NULL != p )
{
time_t tt;
time( &tt );
tm* ptm = localtime( &tt );
memset( p, 0, sizeof(char) * len );
spr...
>______<:MyPaint(...)1 void MyPaint(HDC hdc)2
{3 SelectObject(mdc,bg);4
BitBlt(hdc,0,0,1366,768,mdc,0,0,SRCCOPY);//在窗口位置、大小、原图剪切位5 6 Selec...