随笔分类 - 数据结构
简单的基本实现
摘要:代码段: 1 #include "stdafx.h" 2 #include<stdio.h> 3 #include<stdlib.h> 4 5 6 //节点结构体 7 typedef struct LNode 8 { 9 int data; 10 struct LNode *next; 11 };
阅读全文
摘要:1、顺序表 1 #define MAX 20 2 #define OK 1 3 #define ERRO 0 4 //typedef int linear_TYPE; 5 6 template <typename linear_TYPE> //模板的定义 7 class linear //类的创建
阅读全文