摘要: #includeusing namespace std;class Queue{ int data[10]; int head; int tail;public: Queue(); void Enqueue(int dat); int Dequque();};Qu... 阅读全文
posted @ 2015-04-05 16:43 liuhg 阅读(199) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;class Stack{ int top; int data[10];public: Stack(); bool empty(); void push(int dat); int pop();};Stack:... 阅读全文
posted @ 2015-04-05 16:27 liuhg 阅读(169) 评论(0) 推荐(0) 编辑
摘要: void Swap(int *a, int *b) { int c = *a; *a = *b; *b = c; } 阅读全文
posted @ 2015-04-05 10:04 liuhg 阅读(120) 评论(0) 推荐(0) 编辑