![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
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 · 183 阅读 · 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 · 71 阅读 · 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 · 95 阅读 · 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 · 119 阅读 · 0 评论