想在 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
其实就是容斥原理了代码: 1 uses math; 2 const maxn=55000; 3 var i,n,a,b,c,d,w,tot:longint; 4 ans:int64; 5 sum,mu,p:array[0..maxn] of int64; 6 procedure ge...
分类:
其他好文 时间:
2014-06-25 22:10:01
阅读次数:
299
一、文件的上传1、客户端设置:(1)、在标签中将enctype和method两个属性指明相应的值。Enctype="multipart/form-data"; Method="POST"(2)、form表单中设置一个hidden类型的input框,其中name的值为MAX_FILE_SIZE的隐藏值...
分类:
移动开发 时间:
2014-06-25 22:07:20
阅读次数:
394
PrintEcho print 输出转型$sum=0;$total=(float)$sumIsset() unset()判断一个变量是否存在$echo intval$sum 浮点型Define(“total”,100); 常量一旦定义就不可更改判断句14){Echo’内容’;}?>14){Echo’...
分类:
Web程序 时间:
2014-06-25 21:47:59
阅读次数:
281
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-06-24 18:56:54
阅读次数:
240
class Solution {public: int maxProfit(vector &prices) { int len = prices.size(); if (len < 1) return 0; int sum = 0; in...
分类:
其他好文 时间:
2014-06-24 11:28:47
阅读次数:
193
题目:
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