庄生晓梦

庄生晓梦迷蝴蝶

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

2012年6月3日 #

摘要: // 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... 阅读全文
posted @ 2012-06-03 21:43 qwop 阅读(562) 评论(0) 推荐(0) 编辑

摘要: // 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 阅读全文
posted @ 2012-06-03 16:07 qwop 阅读(178) 评论(0) 推荐(0) 编辑

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 阅读(190) 评论(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 阅读(164) 评论(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 阅读(170) 评论(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 阅读(114) 评论(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 阅读(117) 评论(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 阅读(214) 评论(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 阅读(124) 评论(0) 推荐(0) 编辑

2010年4月8日 #

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