码迷,mamicode.com
首页 >  
搜索关键字:direct path write temp    ( 55479个结果)
单元测试简单入门总结
先说一下今天的简单总结: 用JUnit跑单元测试,首先得有JUnit包,有工程需要的其他包。 而在eclipse中默认不会包含测试包,所以需要引入。其次,如果是maven工程,本地的包可能不全,要将依赖的包都下载。跑一下mvn eclipse:eclipse即可。 1、引入JUnit包:工程右键——properties——java build path——Libraries——add...
分类:其他好文   时间:2014-10-26 01:41:33    阅读次数:194
恼人的The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved...错误,无奈用Struts的bean:write替代了JSTL的C:out
一个应用中有两个页面使用了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
【LeetCode】Same Tree
题目: 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 打开新窗体的两种方法
普通情况下,Response.Redirect 方法是在server端进行转向,因此,除非使用 Response.Write("") 方法外,是不能在新窗体打开所指定的 URL 地址的。可是,假设细致分析一下,假设设置 form 元素的 target 属性,还是有办法打开新窗体的。以下就是能够採用的...
分类:Windows程序   时间:2014-10-25 22:54:33    阅读次数:310
c++ 模板参数做容器参数,迭代器报错 vector<T>::const_iterator
错误如下: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
leetcode-minimum path sum
属于中规中矩的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
简单无符号乘法器(怎么总是有疏漏,神啊!必须要level up了!)
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
【LeetCode】 Maximum Depth of Binary Tree
题目 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
thinkphp全站静态页实现方法!
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
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...
分类:Windows程序   时间:2014-10-25 17:23:49    阅读次数:269
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!