上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 61 下一页

2008年7月25日

COM组件开发实践(一)

摘要: 因为项目需要,开始从事ActiveX方面的工作,看了一些资料,可惜都是些COM原理方面的,没有切合实际动手的东西,在CodeProject上读完David Marcionek的文章【1】后,收获良多,但也遇到一些恼人的小问题,因此在其基础上就一些易错点做些小注解。本文版权归David Marcionek所有。 阅读全文

posted @ 2008-07-25 22:07 Phinecos(洞庭散人) 阅读(51715) 评论(17) 推荐(5) 编辑

2008年7月23日

C++ Exercises(十七)--图的简单实现

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->const int MAXSIZE = 50; //顶点最大数目 #include using namespace std; template class CGraph { public: ... 阅读全文

posted @ 2008-07-23 21:57 Phinecos(洞庭散人) 阅读(892) 评论(4) 推荐(0) 编辑

2008年7月22日

平衡二叉树(AVL树)的简单实现

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include template class CAVLTree; template class CAVLTreeNode { public: CAVLTreeNode(const T& ... 阅读全文

posted @ 2008-07-22 20:33 Phinecos(洞庭散人) 阅读(2399) 评论(1) 推荐(0) 编辑

2008年7月21日

用VC6.0遇到的一个问题

摘要: 我的电脑装vs2008总是报错,不得已装了个VC6 sp6暂时先用用,发现使用重载输入输出运算符时有问题 demo3.h: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include class demo3 { public: d... 阅读全文

posted @ 2008-07-21 18:35 Phinecos(洞庭散人) 阅读(721) 评论(5) 推荐(0) 编辑

二叉搜索树(BST树)的简单实现

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include template class CBinSTree; template class CTreeNode {//树节点类 public: CTreeNode(const T... 阅读全文

posted @ 2008-07-21 15:54 Phinecos(洞庭散人) 阅读(1441) 评论(0) 推荐(0) 编辑

2008年7月20日

C++ Exercises(十六)--二叉树的简单实现

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include "stdafx.h" #include #include #include "BinSTree.h" #include using namespace std; class ... 阅读全文

posted @ 2008-07-20 14:06 Phinecos(洞庭散人) 阅读(934) 评论(0) 推荐(0) 编辑

2008年7月19日

一个简单的线程池实现(java版)

摘要: 线程池代码: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> import java.util.List; import java.util.Vector; public class ThreadPool { private stat... 阅读全文

posted @ 2008-07-19 14:18 Phinecos(洞庭散人) 阅读(11392) 评论(5) 推荐(2) 编辑

Priority Queue(Heap)的实现及其应用

摘要: 优先队列严格说实际上不是一种队列,因为它并不需要遵循队列的FIFO特性,而要求的基本操作包括:向队列中插入新的记录,以及移出队列中的最大的元素。我们可以以各种不同的方式来实现优先队列——只要能够满足上面的两个接口就可以了。但是基于堆的优先队列则具有较好的性能。 优先队列是一种很有用的数据结构,因为实际上我们不是每时每刻都需要对数据进行严格的排序,有时候我们仅仅能够获得最大的元素的即可,但是如果以顺... 阅读全文

posted @ 2008-07-19 11:24 Phinecos(洞庭散人) 阅读(1866) 评论(3) 推荐(0) 编辑

2008年7月18日

C++ Exercises(十五)--排序算法的简单实现

摘要: struct Node {//队列结点 int data; struct Node* pNext; }; class CQueue {//队列类(带头结点) public: CQueue(void); ~CQueue(void); bool isEmpty()const;//是否为空 void EnQueue(int num);//入队列 ... 阅读全文

posted @ 2008-07-18 20:25 Phinecos(洞庭散人) 阅读(575) 评论(0) 推荐(0) 编辑

2008年7月17日

Java NIO非阻塞服务器示例

摘要: 以前一直用的是“ervery thread per connection”的服务器端模式,今天试了下NIO非阻塞模式的服务器。 不过java不能实现I/O完成端口模型,这点很遗憾 package com.vista.Server; import java.io.IOException; import java.net.InetSocketAddress; import java.net... 阅读全文

posted @ 2008-07-17 19:35 Phinecos(洞庭散人) 阅读(15666) 评论(2) 推荐(1) 编辑

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 61 下一页

导航