- 博客(6)
- 收藏
- 关注
原创 Remove1
Error_code List::remove (int position,List_entry&x) { if(count==0) return underflow; if(position=count) return range_error; x=entry[position]; for (int i=position;i entry[i]=e
2013-09-26 19:25:03
357
转载 3.4
P1 Complete the menu-driven demonstration program for manipulating an Extended _queue of characters,by implementing the function get_command and completing the function do_command. #include usin
2013-09-05 20:16:43
530
转载 E7
E7 Rewrite the methods for queue processing from the text ,using a flag to indicate a full queue instead of keeping a count of the entries in the queue The class definition for this Queue imp
2013-09-05 20:13:21
520
原创 E2b
Error_code copy_stack(stack&dest,stack&source) {Error_code result=success; stack temp; stack_entry item; while(!source.empty()&result==success) {result=source.top(item); result=source.pop(); i
2013-09-03 18:41:39
373
原创 编程原则的总结
1.包括所编写的每个项目,函数,方法的准确的前提条件和结束条件 2.要特别仔细的命名你的类名,变量,函数,比确切的给予解释 3.保证你的文档简介并且具有描述性 4.保证阅读程序的时间远远多于编写程序的时间,使程序读起来更容易 5.不应只见树木不知森林 6.使用类来模拟程序的基本概念 7.每个函数应该只进行一次任务,但是要做的很好 8.每个类或函数应该隐藏一些东西 9.确保你的所有连
2013-08-20 20:25:12
482
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人