庄生晓梦

庄生晓梦迷蝴蝶

博客园 首页 新随笔 联系 订阅 管理

2012年5月31日 #

摘要: // var_cycle_001.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include using namespace std; class Obj { char name[ 10 ]; public : Obj( const cha... 阅读全文
posted @ 2012-05-31 13:55 qwop 阅读(182) 评论(0) 推荐(0) 编辑

2012年5月22日 #

摘要: #include void insertSort( int arr[] , int size ) { int i , j , k , f /*First element*/; // 0 1 2 3 4 // 4 3,2,1 // 3 4 2,1 // 2 3 4 1 // 1. 遍历无序区域 for ( i = 1; i j ; k--... 阅读全文
posted @ 2012-05-22 13:49 qwop 阅读(158) 评论(0) 推荐(0) 编辑

2012年5月21日 #

摘要: #include int halfSearch( int arr[], int num, int size ) { int min = 0, max = ( size - 1), mid; if ( size == 0 ) { return -1; } while ( 1 ) { // 1. when the boundary is "min" or "m... 阅读全文
posted @ 2012-05-21 09:20 qwop 阅读(165) 评论(0) 推荐(0) 编辑

2010年5月31日 #

摘要: 启动Tomcat7的代码package com.tan.util;import org.apache.catalina.startup.Bootstrap;/**Tomcat util for start or stop the tomcat.*/public class TomcatUti... 阅读全文
posted @ 2010-05-31 00:39 qwop 阅读(108) 评论(0) 推荐(0) 编辑

2010年5月25日 #

摘要: public final class Resource { private static Resource instance = new Resource(); private Resource() { System.err.println("The resource initializi... 阅读全文
posted @ 2010-05-25 10:27 qwop 阅读(112) 评论(0) 推荐(0) 编辑

2010年5月18日 #

摘要: '); buf.push('NoNoNo'); buf.push('NaNaNa'); buf.push('girl'); buf.push('Jiangxi'); buf.push('列'); buf.push(''); j = idxs[i] + 2... 阅读全文
posted @ 2010-05-18 20:07 qwop 阅读(206) 评论(0) 推荐(0) 编辑

2010年4月16日 #

摘要: 需要的Jar包下载地址: http://hc.apache.org/downloads.cgipackage com.tan.http;import java.io.IOException;import java.io.UnsupportedEncodingException;import ... 阅读全文
posted @ 2010-04-16 18:16 qwop 阅读(117) 评论(0) 推荐(0) 编辑

2010年4月8日 #

摘要: 阅读全文
posted @ 2010-04-08 17:35 qwop 阅读(165) 评论(0) 推荐(0) 编辑

2010年4月1日 #

摘要: Test Hello world! Close Div Show Div 阅读全文
posted @ 2010-04-01 17:37 qwop 阅读(102) 评论(0) 推荐(0) 编辑

2010年3月31日 #

摘要: function Mammal(name) { this.name = name; this.offspring = []; } Mammal.prototype.haveABaby = function() { var newBaby = new Mammal('Baby ' + t... 阅读全文
posted @ 2010-03-31 10:57 qwop 阅读(146) 评论(0) 推荐(0) 编辑