摘要: 类定义文件Platform.h 1 Platform.h 2 #ifndef PLATFORM_H 3 #define PLATFORM_H 4 const int QueueSize=20; 5 class Platform 6 { 7 friend void Sort(Platform H[], int k); 8 //Platform H[],为一个数组对象,每一个数组对象有一个队列 9 friend void Init(Platform H[], int k);10 public:11 Platform();12 ~Platform(){}13 void EnQu... 阅读全文
posted @ 2013-11-05 17:53 关雎天下 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 数据结构的一元多项式相加: 1 LinkAdd.h 2 #ifndef LINKADD_H 3 #define LINKADD_H 4 const int MaxSize=100; 5 struct elem 6 { 7 int coef; 8 int exp; 9 elem * next;10 };11 struct Node12 {13 int coef;14 int exp;15 };16 17 class LinkList18 {19 friend void Add(LinkList &, LinkList);20 public:21 LinkList(Node a[... 阅读全文
posted @ 2013-11-05 17:51 关雎天下 阅读(259) 评论(0) 推荐(0) 编辑