- 博客(6)
- 收藏
- 关注
原创 书上程序
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) cout else cout break; case'q'
2013-09-05 20:58:18 334
转载 4.1 e2
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 17:26:10 344
转载 e2.2
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 19:28:59 378
转载 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
2013-08-29 19:13:33 826
原创 .栈
include int main() { int n; double item; stacknumbers; cout cin>>n; for(int i=0;i { cin>>item; number.push(item); } cout whole(!numbers.empty()){ cout numbers.pop(); } cout
2013-08-29 17:54:29 341
原创 学习到的成果
一,每个函数的开始处放上程序,包括: 1 身份证明 2 所用函数和算法的母的说明 3 函数所做的修改和所用的数据 4 对程序外更多文档的使用 二,当定义每个变量,常量或类时,解释清楚他是什么及如何使用。如果从名称上就能明显看出这些信息更好。 三,对程序的每个重要的片段,用一句阐述他的目的及作用。 四,如果每个片段的结束不明显,则加以指示。
2013-08-23 23:04:44 357
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人