随笔分类 -  数据结构

简单的基本实现
摘要:代码段: 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 }; 阅读全文
posted @ 2022-03-28 15:57 菜鸡拾光 阅读(59) 评论(0) 推荐(0) 编辑
摘要: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 //类的创建 阅读全文
posted @ 2022-03-20 23:30 菜鸡拾光 阅读(59) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示