摘要: //使用数组实现线性表 //为了简单起见,表中的数据都是int类型 #include<stdio.h> #include<malloc.h> //定义线性表数据类型 typedef struct List{ int data[100];//最多存放100个int int last;//线性表最后一个 阅读全文
posted @ 2023-11-17 15:59 一往而深, 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 类图 package com.designer.practice4; import com.designer.practice4.Iterator; //所要遍历的集合的接口 public interface Aggregate { //添加图书 public void appendBook(Boo 阅读全文
posted @ 2023-11-17 13:09 一往而深, 阅读(2) 评论(0) 推荐(0) 编辑