随笔分类 -  数据结构与算法

摘要:// lb1.cpp : Defines the entry point for the console application.////#include "stdafx.h"/* c1.h (程序名) */ #include<string.h> #include<iostream> #include<ctype.h> #include<malloc.h> /* malloc()等 */ #include<limits.h> /* INT_MAX等 */ #include<stdio.h> /* EOF 阅读全文
posted @ 2012-02-26 22:41 Ghost Soar 阅读(313) 评论(0) 推荐(0)
摘要://SqStack.h文件#ifndef SEQLIST#define SEQLISTconst int LIST_INIT_SIZE = 100;const int LISTINCREAM = 10;template <class T>class SeqStack{ protected: T *base;//栈底指针 T *top;//栈顶指针 int stacksize;//栈大小 public: SeqStack(int _stacksize = 100); ~SeqStack... 阅读全文
posted @ 2012-02-26 22:37 Ghost Soar 阅读(1970) 评论(0) 推荐(0)