先说一下今天的简单总结:
用JUnit跑单元测试,首先得有JUnit包,有工程需要的其他包。 而在eclipse中默认不会包含测试包,所以需要引入。其次,如果是maven工程,本地的包可能不全,要将依赖的包都下载。跑一下mvn eclipse:eclipse即可。
1、引入JUnit包:工程右键——properties——java build path——Libraries——add...
分类:
其他好文 时间:
2014-10-26 01:41:33
阅读次数:
194
一个应用中有两个页面使用了JSTL的c:out输出,就类似这么简单三句 应用在本地MyEclipse中的Tomcat6跑得正常,但放到CentOS的Tomcat7上出现了错误The absolute uri: http://java.sun.com/jsp/jstl/core cannot be r...
分类:
编程语言 时间:
2014-10-26 01:34:12
阅读次数:
192
题目:
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value....
分类:
其他好文 时间:
2014-10-25 23:09:06
阅读次数:
447
普通情况下,Response.Redirect 方法是在server端进行转向,因此,除非使用 Response.Write("") 方法外,是不能在新窗体打开所指定的 URL 地址的。可是,假设细致分析一下,假设设置 form 元素的 target 属性,还是有办法打开新窗体的。以下就是能够採用的...
错误如下:templatevoid temp(std::vector& container){ std::vector::const_iterator p; //error: expected ‘;’ before ‘p’ for(p = container.begin(); p != contai...
分类:
编程语言 时间:
2014-10-25 22:51:55
阅读次数:
217
属于中规中矩的dp。和unique paths类似。一次ac。但是可以通过滚动数组来节省存储空间。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 class Solution { 7 public: 8 int...
分类:
其他好文 时间:
2014-10-25 21:19:04
阅读次数:
244
module multiplier(input clk,rst,input [7:0] A,B,output [16:0] C);reg [3:0] cnt;reg [16:0] temp;always@(posedge clk or negedge rst)if(!rst)begincnt<=0;...
分类:
其他好文 时间:
2014-10-25 20:00:40
阅读次数:
335
题目
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node....
分类:
其他好文 时间:
2014-10-25 18:50:01
阅读次数:
137
1:在根目录下的全局index.php中加下面这行:define('HTML_PATH', './htm');//生成静态页面的文件位置2:在项目的配置文件config.php中加下面这行:'HTML_FILE_SUFFIX' => '.html',// 默认静态文件后缀3:在需要生成静态页的act...
分类:
Web程序 时间:
2014-10-25 18:38:26
阅读次数:
194
windows8.1下配置zend framework1.12配置步骤:
1. zend framework1.12库
2. 创建zend framework工程
2.1 手工创建(麻烦)
2.2 使用zf.bat 程序创建
(1)先将php.exe进行全局配置,方法是在环境变量path中添加你的php.exe路径
;E:/wam...