MYSQL
获取当前日期及日期格式获取系统日期:NOW()格式化日期:DATE_FORMAT(date, format)注:
date:时间字段format:日期格式返回系统日期,输出 2009-12-25 14:38:59select now();输出 09-12-25select
date_fo...
分类:
数据库 时间:
2014-05-01 21:25:28
阅读次数:
534
首先,在http://www.yiichina.com/上下载yii
然后,配置系统环境变量,在win8下,按win+x,找到系统->高级系统设置->环境变量->path
把php的运行环境,加入到环境变量中,以分号隔开。如,我的是D:\wamp\bin\php\php5.4.1...
1 //function1向指定内存写数据,已知a的地址是18FEF0 2 3 int
function1() 4 { 5 int a=0; 6 int *p=&a; 7 int *q=(int*)0x18FEF0;
//指定q的地址为0x18FEF0 8 9 ...
分类:
其他好文 时间:
2014-05-01 20:20:06
阅读次数:
286
妈咪,我找到了! -- 15个实用的Linux
find命令示例http://www.oschina.net/translate/15-practical-linux-find-command-examples?p=2#comments爹地,我找到了!
-- 15个极好的Linux find命令示例...
分类:
系统相关 时间:
2014-05-01 19:41:30
阅读次数:
429
看Discuss说是博弈论,没学到这个分类。不过仔细想了想,发现。如果m 2 3 int main()
{ 4 int m, n; 5 int i; 6 7 while (scanf("%d %d", &m, &n) != EOF) { 8 if
(m <...
分类:
其他好文 时间:
2014-05-01 19:38:17
阅读次数:
368
Billboard Time Limit:8000MS Memory Limit:32768KB
64bit IO Format:%I64d & %I64u Description At the entrance to the university,
there is a huge rectangu...
分类:
其他好文 时间:
2014-05-01 19:28:02
阅读次数:
444
比赛链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=44903#overview题目来源:2011
Asia ChengDu Regional ContestWine93有话说:爆0, oh-year!IDOriginTitle13/...
RecursionIt is legal for one function to call
another; it is also legal for a function to call itself. It may not be obvious
why what is a good thing,...
分类:
其他好文 时间:
2014-05-01 18:40:44
阅读次数:
302
Gabor的核函数参考的wiki使用实数Real的公式计算核函数代码:Mat gaborFilter(Mat& img, Mat& filter){
int half_filter_size = (max(filter.rows,filter.cols)-1)/2;
Mat filtered_img(img.rows,img.cols,CV_32F);
for(int i=0;i<img.r...
分类:
其他好文 时间:
2014-05-01 17:42:41
阅读次数:
378
题意:
给定n长的数组(下标从1-n)(n个人的身高,身高各不相同
问:对于第i个人,他能看到的左边最矮的人下标。(如果这个最矮的人被挡住了,则这个值为0)
还有右边最高的人下标,同理若被挡住了则这个值为0
输出n行,每个人左右2边的下标。
单调队列,对于 front - rear 的队列(注意出队都是在rear,入队也是在rear)
当加入元素x,若这队列是单调递增的,显然q.fro...
分类:
其他好文 时间:
2014-05-01 17:21:43
阅读次数:
429