摘要:
// 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... 阅读全文
2012年5月31日 #
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--... 阅读全文
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... 阅读全文
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... 阅读全文
2010年5月25日 #
摘要:
public final class Resource { private static Resource instance = new Resource(); private Resource() { System.err.println("The resource initializi... 阅读全文
2010年5月18日 #
摘要:
'); buf.push('NoNoNo'); buf.push('NaNaNa'); buf.push('girl'); buf.push('Jiangxi'); buf.push('列'); buf.push(''); j = idxs[i] + 2... 阅读全文
2010年4月16日 #
摘要:
需要的Jar包下载地址: http://hc.apache.org/downloads.cgipackage com.tan.http;import java.io.IOException;import java.io.UnsupportedEncodingException;import ... 阅读全文
2010年4月8日 #
2010年4月1日 #
摘要:
Test Hello world! Close Div Show Div 阅读全文
2010年3月31日 #
摘要:
function Mammal(name) { this.name = name; this.offspring = []; } Mammal.prototype.haveABaby = function() { var newBaby = new Mammal('Baby ' + t... 阅读全文