想在 windows 下使用 glog,使用类似FLAGS_max_log_size 来设置参数,结果编译报错。解决办法是在 项目属性 -> C/C++ -> Preprocessor -> Preprocessor Definitions 加入GOOGLE_GLOG_DLL_DECL=。
分类:
其他好文 时间:
2014-06-26 00:32:21
阅读次数:
814
create or replace view view_acceptCompanyasselect * from (select WARNIGID,max(CASEWHEN(zhtablename='中文表名', '中文表名', null)) field1,max(CASEWHEN(zhtablen...
分类:
数据库 时间:
2014-06-25 22:34:45
阅读次数:
268
声明函数指针的数组类似声明一般的指针数组。接上文例子将其改进为使用函数指针的数组,代码如下:
#include
using std::cout;
using std::endl;
//函数声明
double squared(double);
double cubed(double);
double sum_array(double array[],int len,double (*...
分类:
编程语言 时间:
2014-06-22 22:46:44
阅读次数:
264
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum...
分类:
其他好文 时间:
2014-06-22 20:59:24
阅读次数:
227
最近在客户的一个8i生产库上使用statspack,发现alert中有报错:
Mon Jun 16 13:17:52 2014
Errors in file /oracle/8.1.7/admin/prod/bdump/snp0_96626_prod.trc:
ORA-12012: error on auto execute of job 304
ORA-01631: max # exte...
分类:
数据库 时间:
2014-06-22 20:40:40
阅读次数:
316
The partial sum problem
时间限制:1000 ms | 内存限制:65535 KB
难度:2
描述One day,Tom’s girlfriend give him an array A which contains N integers and asked him:Can you choose some integers from the N ...
分类:
其他好文 时间:
2014-06-22 18:00:48
阅读次数:
166
nginx作为web服务器,wordpress上传主题报错 413 Request Entity Too Large
解决:
vim /usr/local/nginx/conf/nginx.conf ’编辑nginx配置文件
client_max_body_size 20m; ‘在http段落里添加这一句后保存退出
/usr/local/nginx/sbin/nginx -s reload...
分类:
其他好文 时间:
2014-06-22 14:38:34
阅读次数:
203
题目:
Given a binary tree containing digits from 0-9 only, each root-to-leaf
path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find...
分类:
其他好文 时间:
2014-06-22 08:30:24
阅读次数:
236
银行家算法:
银行家算法是一种最有代表性的避免死锁的算法。又被称为“资源分配拒绝”法。
银行家算法中的数据结构:
(1)可利用资源向量Available。这是一个含有m个元素的数组,其中的每一个元素代表一类可利用的资源数组,其初始值是系统中所配置的该类全部可用资源的数目,其数值随该类资源的分配和回收而动态地改变。
(2)最大需求矩阵Max。这是一个n*m的矩阵,它定义了系统中n个进程中的每...
分类:
其他好文 时间:
2014-06-22 06:17:14
阅读次数:
319
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum = 22,
5
/ ...
分类:
其他好文 时间:
2014-06-21 22:44:58
阅读次数:
266