摘要:
// Explicit.cpp : Defines the entry point for the console application. // 详解explicit关键字 #include "stdafx.h" #include #include using namespace std; int obj_cnt = 0; class Person { pub... 阅读全文
2012年6月3日 #
摘要:
// object_static_002.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include using namespace std;class C1 {public: C1() { cout << "c1构造" << endl; } C1( char* name ) { cout << name << "构造" << endl;} ~C1() { co 阅读全文
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... 阅读全文
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日 #