1
文章平均质量分 77
u011773945
这个作者很懒,什么都没留下…
展开
-
第一章
本章首先概述良好程序设计的重要原理,特别是它们在大型项目中的应用;然后介绍用于发现有效算法的方法。 一)学习数据结构: • c++允许数据抽象:这意味着程序设计员能创造新的类型来表达方便其应用程序的 任何数据集合。 • c++支持面向对象的设计,在面向对象的设计中,程序设计员定义的类型在算法实 现中起到中心作用. . 重要的是,正如允许面向对象的方法, c++ 允许使用自顶向下的方法,原创 2013-08-24 14:37:14 · 362 阅读 · 1 评论 -
括号匹配
#include #include char str[1000005],ttr[1000005]; int main() { int x,len,i,k,flag,ji; scanf("%d",&x); getchar(); while(x--) { flag=0; gets(str); ji=0; len原创 2013-08-28 20:35:41 · 429 阅读 · 1 评论 -
栈
栈的练习 书上例题: #include #include using namespace std; const int maxstack=10; enum error_code { stack(),bool empty()const,pop(),top(Stack_entry&item)const,push(const Stack_entry&item) }; clas原创 2013-08-28 20:54:06 · 491 阅读 · 0 评论