- 博客(7)
- 收藏
- 关注
转载 4.2E2 4.3E2
4.2 E2(a) int Stack::size()const { Node *p=top_node; int count=0; while(p!=NULL) { p=p->next; count++; } return count; }4.3 E2 vo
2013-09-12 14:44:14 895
转载 Exercise 4.1 E2
(a)Node *p0=new Node('0');Node *p1=p0 -> next=new Node('1'); (b)Node *p0=new Node('0') Node *p1=Node *p2=new Node('1',p0); (c)Node *p0=new Node('0');Node *p1=p0 ->next
2013-09-12 14:42:52 451
转载 4.1 E1
Node *p0 = new Node('0');Node *p1 = p0->next = new Node('1');Node *p2 = p1->next = new Node('2',p1);
2013-09-12 14:41:58 778
转载 数据结构与程序设计 练习3.3 E7
数据结构与程序设计 练习3.3 E7 const int maxqueue = 10 ;class Queue {public :Queue ( ) ;bool empty ( ) const ;Error_code serve ( ) ;Error_code append (const Queue_entry&item) ;Error_code
2013-09-05 18:30:55 371
转载 数据结构与程序设计练习2.2E2(b)
Error_code copy_stack(Stack & dest , Stack & source) { Error_code detected = success ; Stack temp ; Stack_entry item ; while (detected == success && ! source.empty()) { detected = sou
2013-08-29 16:26:31 374
转载 第二次课后习题作业
(a) 当n=3时,输出为321 , 312 , 213 , 231 , 123 ; (b)当n=4时,输出为1234, 1243, 1324, 1423, 1432, 2134, 2143,3124, 3214, 4123, 4132, 4213, 4312, 4321 (c )组合时,2n个数取n个的结果为
2013-08-29 16:21:56 577
转载 数据结构与程序设计第一章:编程规则总结
第一条 raise a problem and problm specification 提出问题和分析问题第二条 program design 程序的设计第三条 choice of date structures 选择数据结构第四条 analysis of alogrithms 分析算法第五条 testing and verrification 软件的
2013-08-20 23:23:48 395
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人