我也是之前都没有弄清楚nginx中的root关键词含义,正好看到一件介绍的,就转过来了location /img/ { alias /var/www/image/;}#若按照上述配置的话,则访问/img/目录里面的文件时,ningx会自动去/var/www/image/目录找文件locatio...
分类:
其他好文 时间:
2014-06-18 19:51:16
阅读次数:
209
sprintf(vFilter->szOverLay,"movie=%s[wm];[in][wm]overlay=%d:%d[out]",szOverlay,x,y);当szOverlay = “d:\\xxx\xxx.png”; 时返回-2,貌似ffmpeg处理不了路径中的冒号。。。用当前路径下的...
分类:
其他好文 时间:
2014-06-18 19:04:31
阅读次数:
1066
#includeint MinSubsequenceSum(const int A[],int n){ int i,sum,MinSum; sum=MinSum=0; for(i=0;i0) sum=0; } return MinSum;}void...
分类:
其他好文 时间:
2014-06-18 17:45:48
阅读次数:
173
1- 多行注释 ''' ''' 或 """ """'''this is the standard way to include a multiple-line comment in you code'''"""this is the standard way to include a multipl...
分类:
编程语言 时间:
2014-06-18 15:46:56
阅读次数:
264
1.可变的方法参数:params public void DrawLine(params Point [] p){}-->DrawLine(p1,p2); orDrawLine(p1,p2,p3);2.向上引用(方法重定义):父类引用子类实例,调用时,则调用父类的方法3.virtual,o...
分类:
其他好文 时间:
2014-06-17 00:15:04
阅读次数:
228
1、 如果仅需要播放波形文件wav格式的声音,很简单,只需一句话:
PlaySound(TEXT("Data\\1.wav"), NULL, SND_FILENAME | SND_ASYNC | SND_LOOP);在这里只提供方法,详细问题自己去探索。
完整C语言代码:
#include
#pragma comment(lib, "Winmm.lib")
int main(int ar...
分类:
编程语言 时间:
2014-06-16 22:44:47
阅读次数:
353
int b = 0;
int c = 0;
int main(int argc, const char *argv[])
{
printf("%d %d %d %d %d",b,b++,b,++b,b);
printf("%d %d %d %d %d",c,++c,c,c++,c);
return 0;
}
结果为 2 1 1 1 0 2 2 1 0 0
这个可以理解,因为p...
分类:
其他好文 时间:
2014-06-16 18:44:35
阅读次数:
170
IP Addresses of Google Global Cachewww.kookle.co.nrBulgaria 93.123.23.1 93.123.23.2 93.123.23.3 93.123.23.4 93.123.23.5 93.123.23.6 93.123.23.7 93.123...
分类:
其他好文 时间:
2014-06-15 09:25:22
阅读次数:
188
$\bf引理:$设$\int_a^{ + \infty } {f\left( x \right)dx} $收敛,且${f\left( x \right)}$在$\left[ {a,{\rm{ + }}\infty } \right)$单调,则$\lim \limits_{x \to + \infty...
分类:
其他好文 时间:
2014-06-14 19:16:24
阅读次数:
372
$\bf引理:$设$\int_a^{ + \infty } {f\left( x \right)dx} $收敛,且${f\left( x \right)}$在$\left[ {a,{\rm{ + }}\infty } \right)$单调,则$\lim \limits_{x \to + \infty...
分类:
其他好文 时间:
2014-06-14 18:55:58
阅读次数:
172