- 博客(5)
- 收藏
- 关注
原创 习题E7
const int maxqueue=10;class Queue{public:Queue();bool empty() const;Error_code serve();Error_code append (const Queue_entry&item);Error_code retrieve (Queue_entry&
2013-08-29 17:41:39 379
原创 习题E2
Error_code copy_stack(Stack &dest,Stack &source){ Error_code detected=success; Stack temp; Stack_entry item; while(detected==success&&!source.empty()}{ detected=source.top(item);
2013-08-29 17:40:01 405
原创 P56-E4习题
(1).1 2 3 1 3 2 2 1 3 3 2 1 3 1 2(2).1 2 3 4 1 2 4 3 1 3 2 4 1 4 2 3 1 4 3 2 2 1 3 4 2 1 4 3 3 1 2 4 3 2 1 4 4 1 2 3 4 1 3 2 4 2 1 3 4 3 1 2 4 3 2 1
2013-08-24 11:31:45 399 1
原创 数据结构与程序设计第一章总结
1.一个类的方法是公用的,一个类中的函数是私有的。2.编写每个程序、函数和方法要包含准确的前置条件和后置条件。3.需要最谨慎的选择类、变量和函数的名称,并予以详尽的解释。4.保持文档简练但具有描述作用。5.阅读程序的时间比编写的时间多得多,使阅读更容易。6.不要只见树木不见森林。7.使用类来模拟程序的基本概念。8.每个函数应该仅完成一个任务,但要很好地完成。9.每个
2013-08-24 11:08:23 489
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人