以后尽量能用迭代就别用递归啊,递归只是让自己轻松了,但是却增加了电脑的负担。 package
chap06_Heap_Sort;import static org.junit.Assert.*;import java.util.Arrays;import
org.junit.Test;public ...
分类:
其他好文 时间:
2014-06-10 11:57:27
阅读次数:
252
1 class Solution { 2 public: 3 int
singleNumber(int A[], int n) { 4 int i,j; 5 for(i=0; i<n; i++) 6 { 7 for(j...
分类:
移动开发 时间:
2014-06-10 11:41:55
阅读次数:
259
try{
String cmds="java -version";
Process p = Runtime.getRuntime().exec(cmds);
int exitValue = 1;
if((exitValue = p.waitFor()) != 0)
{
p.destroy();
System.out.println("exitValue:"+exitValue);
...
分类:
编程语言 时间:
2014-06-10 07:57:42
阅读次数:
341
private string GetToJson(object
dic){//实例化JavaScriptSerializer类的新实例JavaScriptSerializer jss = new
JavaScriptSerializer();try{//将对象序列化为json数据return jss...
分类:
Web程序 时间:
2014-06-09 20:06:45
阅读次数:
219
1 System.IO.File.Delete("c:\\2.txt"); 2 3 try 4
{ 5 //抛出异常:throw exception 6 Sys...
分类:
其他好文 时间:
2014-06-09 19:40:29
阅读次数:
244
package chap04_Divide_And_Conquer;import static
org.junit.Assert.*;import java.util.Arrays;import org.junit.Test;/** * 矩阵相乘的算法 *
* @author xiaojintao....
分类:
其他好文 时间:
2014-06-09 16:12:24
阅读次数:
273
list转json方法一、try {
System.Runtime.Serialization.Json.DataContractJsonSerializer serializer = new
System.Runtime.Serialization.Json.DataContractJsonSe....
分类:
Web程序 时间:
2014-06-08 22:54:27
阅读次数:
268
private void btnBaoshi_Click(object sender,
EventArgs e) { try { System.Threading.Thread thread = ...
分类:
其他好文 时间:
2014-06-08 20:17:59
阅读次数:
231
第一步写action方法:
public String exportActiveExcel()
{
String name ="活跃度列表.xls";
try {
name = java.net.URLEncoder.encode(name, "UTF-8");
fileNam...
分类:
编程语言 时间:
2014-06-08 15:18:02
阅读次数:
295
public string CreateWordFile(string CheckedInfo)
{
string message = "";
try
{
Object Nothing = System.Reflection.Missing.Value;
Directory.CreateDirectory("C:/CNSI"); //创建文件所在目录
string name = "CNSI.doc...
分类:
其他好文 时间:
2014-06-08 04:57:55
阅读次数:
291