下面是一个示例Log4j.properties,需要放在classpath下,web应用放在WEB-INF的classes下即可。 log4j.rootCategory=ALL, A1, Rlog4j.appender.A1=org.apache.log4j.ConsoleAppenderlog.....
分类:
其他好文 时间:
2014-10-21 00:46:48
阅读次数:
222
#include
#include
#include
#include
using namespace std;
const double eps = 1e-6;
const int inf = 0x3f3f3f3f;
int n,m;
int f[100];
struct point{
double x,y;
point(double xx = 0,double yy = 0)...
分类:
其他好文 时间:
2014-10-20 21:24:50
阅读次数:
276
用MATLAB仿真LMS算法,可是程序一不小心就会溢出,程序RUN一次时间又很长,所以希望能当判断到某个数为INF时就让程序停止下来。开始查到了快捷键:Ctrl+C,但是我知道它是不能判断的,只能手动。之后又看到有人提到:error,return,break等函数Error:Return:退出调用的...
分类:
其他好文 时间:
2014-10-20 20:47:11
阅读次数:
238
其实很简单,在inf中有中设置图表索引显示黄色问号肯定说明 你是这样填写的HKR,,Icon,,"-18" PCI设备要改成 -5 数值如下Computer 0 Display 2 Mouse 5 Keyboard 6 FDC 9 HDC 9 Ports 10 Net 15 System 0 Sound 8 Printer 14 Monitor 2 Network Transport 3 Netw...
分类:
其他好文 时间:
2014-10-20 17:29:28
阅读次数:
337
给出N个数,和每个数的a,b值
贪心思想,按a/b排序放置即可;
#include "stdio.h"
#include "string.h"
#include "algorithm"
using namespace std;
struct node
{
int a,b;
double c;
}data[100010];
__int64 inf=999999999...
分类:
其他好文 时间:
2014-10-20 17:19:22
阅读次数:
202
HDU 1827 Summer Holiday
题目链接
题意:中文题
思路:强连通缩点,每个点的权值为强连通中最小值,然后入度为0的点就是答案
代码:
#include
#include
#include
#include
#include
using namespace std;
const int N = 1005;
const int INF = ...
分类:
其他好文 时间:
2014-10-19 23:21:42
阅读次数:
244
这样加边比STL快!不明白为什么要+mod 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define INF 0x3f3f3f3f 8 #define M(a,b) memset(a,b,sizeof(a)...
分类:
其他好文 时间:
2014-10-19 19:52:12
阅读次数:
273
打印userid变量参数的信息web_submit_form("ValidateLoginAction.do_2","Snapshot=t2.inf",ITEMDATA,"Name=userid", "Value={userid}", ENDITEM,"Name=pword", "Value={pa...
分类:
其他好文 时间:
2014-10-19 12:50:51
阅读次数:
197
Hibernate中因未写完整路径名而出错......
分类:
移动开发 时间:
2014-10-19 01:26:02
阅读次数:
179
Escape
题目:
很裸的多重匹配。但是点数较多,所以要用到状态压缩。。。。。。
第一次写。好厉害的赶脚。
#include
#include
#include
#include
#include
using namespace std;
const int INF = 1 << 30;
const int MAXN = 20000 + 10;
/////...
分类:
其他好文 时间:
2014-10-18 15:32:50
阅读次数:
203