当我们在开发spring项目时,一般会将jar包放到webInf/lib下,这样是myeclipse自动将jar包加载到tomcat中webapps下,但是当我们新建一个lib文件夹的情况下,我们add building Path时就会出错,这时候我们有个技巧供使用。1.项目上点击右键搜索de,找到...
分类:
编程语言 时间:
2014-08-05 18:59:39
阅读次数:
179
今天从svn上下载项目后,想加入下面jar包。可是build path为灰色。解决的方法是:1、在项目上右键properties---project facts 如图所看到的:点击右側convert to faced from...出现如图所看到的:点击ok就可以。
分类:
其他好文 时间:
2014-08-05 18:47:19
阅读次数:
266
先上代码。/**** @author:hushunfeng** 直接插入排序 从小到大进行排列*/#includevoid insertSort(int *array,int arraySize) { //用于缓存被插入数 int temp; int i; in...
分类:
其他好文 时间:
2014-08-05 18:32:49
阅读次数:
172
在编程过程中,常常需要获取程序的路径,并对路径进行分解和合并,这时就使用到了_splitpath。同时与之相反的功能函数有:_makepath。与之相关的函数有:FindFirstFile等。void _splitpath( const char *path, char *drive, char *...
分类:
其他好文 时间:
2014-08-05 18:20:49
阅读次数:
213
今天按照《公告:CSDN博客频道支持Windows Live Writer离线写博客啦》学着使用Windows Live Writer写CSDN博客,结果碰到了评论中的500 Internal Server Error。 我在进行第三步“设置日志的远程发布网址,填写http://write.blog.csdn.net/xmlrpc/index ”时(见上图)发生错误500 Internal...
nstantclient-basic-win32-10.2.0.4.zip1.解压到D:/instantclient_10_22.将D:/instantclient_10_2增加到PATH环境变量中3.增加以下环境变量:TNS_ADMIN=D:/instantclient_10_2NLS_LANG=...
分类:
数据库 时间:
2014-08-05 15:20:19
阅读次数:
308
FileStream fs;StreamWriter sw;fs=new FileStream(@" ........",FileMode.Creat,FileAccess.Write)//绝对地址sw=new StreamWriter(fs);sw.Write(data);sw.Close();f...
分类:
其他好文 时间:
2014-08-05 13:57:49
阅读次数:
634
#!/bin/bash## Nginx 日志文件所在的目录LOGS_PATH=/usr/local/nginx/logs## 获取昨天的 yyyy-MM-ddYESTERDAY=$(date -d ”yesterday” +%Y-%m-%d)## 移动文件mv ${LOGS_PATH}/access...
分类:
其他好文 时间:
2014-08-05 13:44:19
阅读次数:
286
题目地址:Prime Path题目大意: 给你两个四位数的素数,通过改变其中的一个数,每次只允许改变一位数,而且改变之后的数也必须是个素数,问你最少通过改变几次变成后一个四位的素数。如果不能改变成后面的四位素数则输出Impossible。解题思路: 广搜,枚举改变每一位(千、百、十、个)数 进队.....
分类:
其他好文 时间:
2014-08-05 13:34:59
阅读次数:
241
Graph Coloring You are to write a program that tries to find an optimal coloring for a given graph. Colors are applied to the nodes of the graph and t...
分类:
其他好文 时间:
2014-08-05 13:31:49
阅读次数:
215