架构深渊

慢慢走进程序的深渊……关注领域驱动设计、测试驱动开发、设计模式、企业应用架构模式……积累技术细节,以设计架构为宗。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 37 下一页

2009年1月5日

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include #ifndef C_Class #define C_Class struct #endif C_Class A { C_Class A *A_this; void... 阅读全文

posted @ 2009-01-05 22:03 chen eric 阅读(234) 评论(0) 推荐(0) 编辑

摘要: // search.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "LinkTable.h" #define MAX_KEY 500 //------------------------------数组实现部分-----------... 阅读全文

posted @ 2009-01-05 21:53 chen eric 阅读(2557) 评论(2) 推荐(0) 编辑

摘要: C/C++ code #include using namespace std; //直接顺序排序 void InsertSort(int r[], int n) { for (int i=2; i=1; d=d/2) //以增量为d进行直接插入排序 { for (i=d+1; i0 && r[0]r[j+1]) { temp=r[j]; r[j]=r[j+1... 阅读全文

posted @ 2009-01-05 21:29 chen eric 阅读(371) 评论(0) 推荐(0) 编辑

摘要: 所谓排序,就是使一串记录,按照其中的某个或某些关键字的大小,递增或递减的排列起来的操作。 分类 在计算机科学所使用的排序算法通常被分类为: 计算的复杂度(最差、平均、和最好表现),依据串列(list)的大小(n)。一般而言,好的表现是O。(n log n),且坏的行为是Ω(n2)。对於一个排序理想的表现是O(n)。仅使用一个抽象关键比较运算的排序算法总平均上总是至少需要Ω(n ... 阅读全文

posted @ 2009-01-05 20:59 chen eric 阅读(339) 评论(1) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->相关知识介绍(所有定义只为帮助读者理解相关概念,并非严格定义): 1、稳定排序和非稳定排序 简单地说就是所有相等的数经过某种排序方法后,仍能保持它们在排序之前的相对次序,我们就 说这种排序方法是稳定的。... 阅读全文

posted @ 2009-01-05 20:33 chen eric 阅读(2145) 评论(1) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->Windows对文件的读写提供了很丰富的操作手段,如: 1. FILE *fp, fstearm; (C/C++) 2. CFile, CStdioFile; (MFC) 3. CreateFi... 阅读全文

posted @ 2009-01-05 16:52 chen eric 阅读(1199) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 转载 原作者:冉林仓 来 源:chinaasp Api函数是构筑Windws应用程序的基石,每一种Windows应用程序开发工具,它提 供的底层函数都间接或直接地调用了Window... 阅读全文

posted @ 2009-01-05 11:29 chen eric 阅读(747) 评论(0) 推荐(0) 编辑

摘要: 内部类共有四种: 1、静态内部类,只能使用外部类中静态成员,一般用处不大。 2、成员内部类,和外部类属性、方法并行的一种类,用法和方法差不多,他可以调用外部类的属性和方法,满有用的。 3、方法内部类,定义在方法里面,可以访问外围类中的属性和方法,以及方法中的final常量。没什么用,因为第四种比他简单。 4、匿名内部类,用得最多,通过扩展接口或别的类实现,用法和方法内部类一样,写起来简单些。 为什... 阅读全文

posted @ 2009-01-05 11:04 chen eric 阅读(522) 评论(0) 推荐(1) 编辑

摘要: 如何自己实现IEnumerable和IEnumerator接口以支持foreach语句 2008/10/11 12:22 在C#中,凡是实现了IEnumerator接口的数据类型都可以用foreach语句进行迭代访问,可是,对于自定义类型如何实现这个接口以支持foreach的迭代呢?要实现这个功能,先来看看IEnumerable和IE... 阅读全文

posted @ 2009-01-05 09:54 chen eric 阅读(1296) 评论(1) 推荐(0) 编辑

2009年1月4日

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 新建网页 1 loading 阅读全文

posted @ 2009-01-04 12:38 chen eric 阅读(4717) 评论(2) 推荐(0) 编辑

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 37 下一页