#include #pragma mark 数组的倒序排列int main(){ int array[5] = {1, 3, 2, 4, 5}; /*方法一:*/ for (int i = 0; i<5/2; i++) { int temp = array[i]; array[i]...
分类:
编程语言 时间:
2014-10-19 22:37:23
阅读次数:
1276
在tomcat中设置自动部署,可以简化工程的修改操作。有两种方法:方法1:打开tomcat_home/conf/server.xml文件,在标签内输入以下内容:Xml代码path:表示在浏览器中输入http://localhost:8080/虚拟目录名docbase:表示工程包的物理绝对路径,具体....
分类:
其他好文 时间:
2014-10-19 22:33:44
阅读次数:
206
【题目】
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down o...
分类:
其他好文 时间:
2014-10-19 21:25:37
阅读次数:
247
说道JDK,不光是Java,Android,才会涉及到,接触的东西多了·才知道原来需要配置JDK的地方这么多。以前以为一个CLASSHOME和JAVA_PATH已经很好了。现在才知道还有那么简单的方法。建一个用户变量JAVAHOME,里面写入我们的JDK、位置:C:\Program Files\Ja...
分类:
其他好文 时间:
2014-10-19 21:16:22
阅读次数:
155
1 /** 2 * Definition for binary tree 3 * public class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 * TreeNo...
分类:
其他好文 时间:
2014-10-19 21:11:49
阅读次数:
189
前面已经说了怎么通过MVC来上传文件,那么这次就说说如何上传图片然后显示缩略图,这个的实用性还是比较大。用UpLoad文件夹来保存上传的图片,而Temp文件夹来保存缩略图,前面文件上传部分就不再重复了,不过图片上传当然只能是图片格式的文件,因此在之前那篇博客中 通过控制格式的上传便能防止恶意上传,这...
分类:
Web程序 时间:
2014-10-19 21:07:44
阅读次数:
334
package com.love;public class Test02 { public static double jc(int n){ double jc = 1; for (int j = 1; j y){ temp = x; x = y; y = temp; } ...
分类:
其他好文 时间:
2014-10-19 19:55:16
阅读次数:
191
Delphi中Twebbrowser的document 对象的属性、方法、事件一览(转)2012-12-07 10:19:39|分类: Delphi 零碎 |标签:webbrowser属性方法事件delphi |举报 |字号大中小订阅 {ihtmldocument2 方法:}write ...
分类:
Windows程序 时间:
2014-10-19 19:52:40
阅读次数:
1722
1.下载JUnit4的jar包,在项目上右键选properties->Java Build Path ->Libraries->Add library添加刚才的jar包2.在项目中找一个要测试的类(或者在其他包中建立,再选要测试的类),右键New->JUnit Test Case3.如果是在要测试的...
分类:
其他好文 时间:
2014-10-19 19:52:29
阅读次数:
217
这是北大未名站提供的解决方案:下载一个补丁包pach.zip解压后:1.用补丁包内的info.plist替换Matlab包Contents下的同名文件;2.把补丁包内的java下的文件夹path放在Matlab包的java目录下。OK问题应该已经解决了,enjoy~
分类:
其他好文 时间:
2014-10-19 19:50:01
阅读次数:
162