- 博客(8)
- 收藏
- 关注
原创 作业
bool do_command(char c,Extended_queue &test_queue){bool continue_input=ture;Queue_entry x;switch(c){case'r':if(test queue.retrieve(x)==underflow)coutelsecoutbreak;case'q':c
2013-09-05 21:10:16 510
原创 作业
E2. Write the C++ statements that are needed to create the linked configuration of nodes shown in each of the flloeing diagrams.For each part,embed these statements as part of a program that printfs t
2013-09-05 21:09:28 488
原创 9月4日 作业
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#include#includeusing namespace std;#incl
2013-09-05 21:07:17 553
原创 作业
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);detected=so
2013-08-29 19:44:17 362
原创 作业
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 queueThe class definition for this Queue implement
2013-08-29 19:26:11 393
原创 第二章
第二章 栈1、在栈中有关类模板库的一段程序:问题描述:输入数n,代表测试数据的数目,输入n个数并逆序输出;#include //定义栈类#includeusing namespace std;int main(){int n;double item;stacknumbers;coutcin>>n;for(int i=0;i{cin>>
2013-08-29 19:25:26 405
原创 练习
1、输入两个整数,求它们的平方和 includeusing namespace std;int fun2(int m){return m*m;}int fun1(int x,int y){return fun2(x)+fun2(y);}int main(){int a,b;coutcin>>a>>b;coutreturn 0;
2013-08-29 19:24:32 564
原创 一个大二学生对数据结构的理解
第一章 程序设计原理 本书的目的:描述成学设计方法和工具,方法和工具对实现规模的项目是有效的,这些程序都是大型的程序。我们为了是程序成功设计就必须采用一种一致的,统一的和逻辑的方法,也必须仔细遵守程序设计的重要原理。 第一章; 1,简介 2,Life游戏
2013-08-23 22:00:55 560
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人