2014年4月18日
摘要: 1 #include 2 3 struct Node { 4 Node * next; 5 6 Node() { next = NULL;} 7 Node(const Node & node) { 8 next = node.next;... 阅读全文
posted @ 2014-04-18 14:02 aoun 阅读(309) 评论(0) 推荐(0)
摘要: 1 enum Error_code { 2 succeed, 3 overflow, 4 underflow 5 }; 6 7 typedef int Queue_entry; // Now queue element is int 8 9 const int max_... 阅读全文
posted @ 2014-04-18 12:31 aoun 阅读(192) 评论(0) 推荐(0)
摘要: const int max_stack = 10;typedef int Stack_entry; // Now, stack data type is intenum Error_code { succeed, overflow, underflow};class Stack{p... 阅读全文
posted @ 2014-04-18 11:05 aoun 阅读(360) 评论(4) 推荐(0)
摘要: Item x[20];Item * ptr = x;ptr = &(x[0]);ptr = &(x[i]);ptr = x + i; 阅读全文
posted @ 2014-04-18 10:28 aoun 阅读(188) 评论(0) 推荐(0)