- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 C++数据结构路程:第四章,链式队列
clear()函数有些问题,晚点调试,在看树,接下来才是数据结构的精华#include "stdafx.h"#include using namespace std;class Node{private: int data; Node*pnext; friend class lqueue;public: Node(int n); ~Node();};class lqueue{private:
2009-11-03 16:18:00 218
原创 C++数据结构路程:第三章二阶段,链式栈
运行良好,注意调试// 链式栈.cpp : Defines the entry point for the console application.//#include "stdafx.h"#includeusing namespace std;class Node{private: int data; Node*pnext; friend class lstack;public: Nod
2009-11-02 23:47:00 218
原创 C++数据结构路程:第三章一阶段,顺序栈
比起链表来,简单了很多,因为毕竟只能从头增删运行良好// 顺序栈.cpp : Defines the entry point for the console application.//#include "stdafx.h"#includeusing namespace std;class sstack{ private: int top; int *m_elements; i
2009-11-02 23:45:00 240
原创 C++数据结构路程:第二章二阶段,双向链表
主要与单链表的区别在插入和删除,其优点在我这个简单增删改查中还不体现,用双向肯定可以降低时间复杂度运行良好#include "stdafx.h"#includeusing namespace std;class Node{ private: int data; Node*pprior; Node*pnext; friend class doublelist; public: N
2009-11-02 23:41:00 319
原创 C++数据结构路程:第二章一阶段,单链表 完成版
程序没错,但是运行不起来,再看看后再改 PS:已改为完成版,都是小错误!,目前可以潇洒运行和测试 #include "stdafx.h"#includeusing namespace std;class Node{private: int data; Node*pnext; friend class slist;public: Node() { pnext = NULL; }; N
2009-10-30 19:25:00 302
原创 C++数据结构路程:第一章,顺序表以供练级
顺序表用C++实现的,简便用了int类型存储,删除方面有点问题,但就这样了,以后在改正,慢慢来 #includeusing namespace std;class Selist{ private: int m_currentsize; int m_maxsize; int*m_elements; public: Selist(int size); ~Sel
2009-10-30 15:40:00 231
原创 MFC下的消息添加,话说不知道以后能用到多少
很简单的VC应用,算是windows编程的入门吧void CSIMPLEView::OnDraw(CDC* pDC){ CSIMPLEDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); pDC->TextOut(m_ptMouse.x,m_ptMouse.y,m_szDecription); // TODO: add draw code for na
2009-10-29 19:38:00 301
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人