自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 Remove

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:28:20 342

转载 Exercise 4.2 Exercise 4.3

Exercises 4.2 E2 Consider a linked stack that includes a method size .That method size requires a loop that moves through the entire stack to count the entires,since the number of entries in the

2013-09-12 17:51:09 416

原创 4.1 E2

(a) struct Node  {  Node_entry entry;  Node*next;  Node();  Node(Node_entry item,Node*add_on=NULL);  }  Node::Node()  {  next=NULL;  }  Node::Node(Node_entry item,Node*add_on)  {  entry=

2013-09-05 20:02:33 423

翻译 Programming Principles

1、最谨慎的选择类,变量和函数的名称,并予以详尽的解释。 2、保持文档简练但具有描述作用。 3、阅读的时间比编程的时间多得多,使阅读更容易。 4、不要只见树木不见森林。 5,、使用类来模拟程序的基本概念。 6、每个函数应该仅仅完成一项任务,但要很好的完成。 7、每个类或函数应该隐藏某些东西。 8、保持连接简单,尽可能避免使用全局变量。 9、只要能够避免切勿引起副作用,如果必须使用全

2013-08-24 12:17:50 427

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除