数据结构
iforeverhz
记录学习
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
实现模拟斗地主
/** * 实现模拟斗地主的功能 * 1.组合牌 * 2.洗牌 * 3.发牌 * 4.看牌 */ public class DouDiZhu { public static void main(String[] args) { //1.组合牌 //创建Map集合,键是编号,值是排 HashMap<Integer, String> poker = new HashMap<Integer, String>();原创 2020-11-21 15:44:23 · 240 阅读 · 0 评论 -
顺序栈
#pragma once #ifndef _SEQSTACK_ #define _SEQSTACK_ #include <iostream> using namespace std; typedef int DataType; struct SeqStack { int MAXNUM; int t; DataType *s; }; typedef SeqStack Node;...原创 2020-01-04 20:09:08 · 110 阅读 · 0 评论 -
链栈
栈(顺序表) #pragma once #ifndef _SEQSTACK_ #define _SEQSTACK_ #include <iostream> using namespace std; typedef int DataType; struct SeqStack { int MAXNUM; int t; DataType *s; }; typedef SeqStac...原创 2020-01-04 20:00:24 · 139 阅读 · 0 评论 -
数据结构——表
顺序表 #ifndef SEQLIST_H #define SEQLIST_H //顺序存储 typedef int DataType; struct Node { int MaxNum; //顺序表表中最大存储元素个数 int num; DataType *element; }; typedef struct Node SeqList; typedef struct Node *PSe...原创 2020-01-04 19:52:04 · 184 阅读 · 0 评论
分享