摘要: 如何解决VS2005没有代码智能提示的问题 2007-11-12 17:05 class A { A(); f(); }; 在vs2005输入A::时,本来应该会有个代码智能... 阅读全文
posted @ 2007-12-12 13:51 吴东雷 阅读(772) 评论(0) 推荐(0) 编辑
摘要: 项目-->属性-->链接器-->输入-->附加依赖项 在这里面输入,但要注意路径,利且下面的宏可以输入相对路径.例如:$(IntDir)\Dll1.lib 阅读全文
posted @ 2007-12-08 12:13 吴东雷 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: /**//*书上采用的是更现实的非递归算法,但是我参考了几本书都是采用的递归算法,并且书上的非递归算法也没有太细的讲(可能是我太笨吧),总之没有学明白.唉 :(这里采用的是严蔚敏版的递归算法,且在这本书中,也有提示说递归算法在实际应用中不可取,因为在MSort要重复的定义很多的list,需要很多的栈空间自考书中的算法只需要定义一个list.我也纳闷了,连正规的本科讲的归并都是采用的递归算法,为什... 阅读全文
posted @ 2007-08-09 10:10 吴东雷 阅读(389) 评论(0) 推荐(0) 编辑
摘要: /**//*这个算法的实现没有按照书上的做法,书的算法变量太多,且命名混乱,不容易分析和理解,所以我采用了严蔚敏版的算法.另外,书中在排序开始时是讲,所有的排序都是从小到大的排序,但现在的做法是将小的结点放在了数组的后面,又没有说明.*/#include "stdafx.h"#include #include int const count=8;typedef struct { int ke... 阅读全文
posted @ 2007-08-08 14:06 吴东雷 阅读(317) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include int const count=8;typedef struct { int key;}records;typedef records list[count+1];void select(list & r){ for(int i=1;i>r[i+1].key; } */ r[1].key=70;... 阅读全文
posted @ 2007-08-08 09:40 吴东雷 阅读(261) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include int const count=10;typedef struct { int key;}records;typedef records list[count+1];void BubbleSort(list & r){ bool flag=1; //最多需要比较n-1次 for(int i=1;ir[... 阅读全文
posted @ 2007-08-07 16:09 吴东雷 阅读(248) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include int const count=8;typedef struct { int key;}records;typedef records list[count+1];//此处没有使用书中的算法,书中的算法实现很繁索,且使用i,h,j,p,x一类的变量,使程序阅读更加吃力//我实现的是严蔚敏版的数据结构中关于快速排序的算法... 阅读全文
posted @ 2007-08-07 16:09 吴东雷 阅读(295) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include int const count=10;typedef struct { int key;}records;typedef records list[count+1];void straightsort(list & r){ for(int i=2;i>r[i+1].key; } cout<<"输入的序... 阅读全文
posted @ 2007-08-07 10:14 吴东雷 阅读(274) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include typedef struct btnode * bitreptr;struct btnode{ int data; //数据 bitreptr lchild; //左节点指针 bitreptr rchild; //右节点指针}... 阅读全文
posted @ 2007-08-04 11:01 吴东雷 阅读(701) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include //顺序表上的查找int const maxsize=10;typedef struct{ int key;}rec;typedef struct{ rec item[maxsize+1]; int n; //最后一个元素下标}sqtable;int search_sqtabl... 阅读全文
posted @ 2007-08-03 09:43 吴东雷 阅读(323) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include int const vnum=6;//单链表定义typedef struct arcnode{ int adjvex; //与其相连的下个结点的编号 struct arcnode * nextarc; ... 阅读全文
posted @ 2007-07-30 13:46 吴东雷 阅读(269) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include int const vnum=6;int const MAX=32767;typedef struct graph{ int vexs[vnum]; //顶点信息 int arcs[vnum][vnum]; ... 阅读全文
posted @ 2007-07-30 10:15 吴东雷 阅读(381) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include //------------------------------------------------使用顺序表建立的队列结构------------------------------int const maxsize=20;typedef struct cycqueue{ int data[maxsize]; ... 阅读全文
posted @ 2007-07-28 11:29 吴东雷 阅读(480) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include //邻接表,存储P114的5-10#define vnum 8//单链表定义typedef struct arcnode{ int adjvex; //与其相连的下个结点的编号 struct arcnode * nextarc;... 阅读全文
posted @ 2007-07-28 11:28 吴东雷 阅读(658) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include int const ELEMENTCOUNT=5; //判断条件的个数,即初始根节点的数量struct node{ float wt; //权值 int parent,lchild,... 阅读全文
posted @ 2007-07-14 15:06 吴东雷 阅读(589) 评论(0) 推荐(0) 编辑
摘要: // DataStructTest.cpp : Defines the entry point for the console application.//说明:书中使用的为顺序栈结构,但栈的使用是在遍历时模拟的,为了重用以前的代码,我使用了以前实现的顺序栈结构#include "stdafx.h"#include #include //------------------------------... 阅读全文
posted @ 2007-07-12 16:22 吴东雷 阅读(442) 评论(0) 推荐(0) 编辑
摘要: // DataStructTest.cpp : Defines the entry point for the console application.//说明:书中使用的为顺序栈结构,但栈的使用是在遍历时模拟的,为了重用以前的代码,我使用了以前实现的顺序栈结构#include "stdafx.h"#include #include //------------------------------... 阅读全文
posted @ 2007-07-12 16:19 吴东雷 阅读(552) 评论(0) 推荐(0) 编辑
摘要: // DataStructTest.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include //递归方法int Fib_1(int n){ if (n==0) return 0; else if (n==1) return... 阅读全文
posted @ 2007-07-12 16:17 吴东雷 阅读(245) 评论(0) 推荐(0) 编辑
摘要: // DataStructTest.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include typedef struct btnode * bitreptr;struct btnode{ char data; //数据... 阅读全文
posted @ 2007-07-09 11:10 吴东雷 阅读(599) 评论(0) 推荐(0) 编辑
摘要: WinForm继承Control,实现对Windows标准控件的包装! 阅读全文
posted @ 2007-07-07 08:58 吴东雷 阅读(1267) 评论(0) 推荐(0) 编辑