![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
J.WADE
单身
展开
-
数据结构之顺序表
// arrlist.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include //定义线性表Listtemplate class List { void clear(); //置空线性表 bool isEmpty()转载 2017-11-01 21:02:17 · 292 阅读 · 0 评论 -
循环队列——JAVA
import java.util.LinkedList;public class Queue { LinkedList queue=null; public Queue() { queue=new LinkedList(); } public void isEmpty() { int temp=(Integer)queue.size(); if(temp<0) {原创 2018-01-25 21:49:05 · 198 阅读 · 0 评论 -
单链表——JAVA
class Node{ int data; Node next; Node(int i) { data=i; next=null; }}class List{ private Node head,tail; String Lname; List(String str) { Lname=str; head=null; tail=null; } voi原创 2018-01-25 21:51:05 · 164 阅读 · 0 评论 -
顺序栈——JAVA
import java.util.LinkedList;import java.util.Scanner;public class Stack1 { private LinkedList stack; public Stack1() { stack=new LinkedList(); } public boolean isEmpty() { return stack.is原创 2018-01-25 21:55:33 · 206 阅读 · 0 评论