- 博客(10)
- 收藏
- 关注
原创 数据结构期末课程设计
数据结构课程设计实验报告 实训目的 通过课程设计,学会运用数据结构知识,针对具体应用,自己设计合理数据结构,确定存储结构,并能设计具体操作算法,选择使用具体语言进行实现。掌握C++较复杂程序的组织和设计过程,调试技巧。学习解决实际问题的能力。 实训环境 计算机windows xp或其它版本,VC6.0或更高版本,或其它语言环境。 一、问题描述 题目0.GDOU是真是一个好地方,校园如一
2015-01-10 20:36:04
2311
4
原创 实验3
字符串,二维数组(输入文本,统计文本单词个数) include using namespace std; int strlen(char *s) { char *p=s; int count=1; while(*p!='\0') { p++; if (*p==' '&&*(p+1)!=' '&&*(p+1)!='\0') count++; } return count;
2014-11-16 16:30:26
564
1
原创 链栈
template class linkstack { public: linkstack(){top=NULL;} ~linkstack(); void push(DataType x); DataType pop(); DataType gettop(){if(top!=NULL)return top->data;} int empty(){top=
2014-10-25 09:35:45
510
1
原创 双链表
#include template class Dlinklist { public: Dlinklist(); Dlinklist(int a[],int n); ~Dlinklist(); DataType Get(int i); void insert(int i,int x); int Delete(int i); void Printlist();
2014-10-22 13:19:02
588
1
原创 顺序栈
const int stacksize=10; template class seqstack { public: seqstack(){top=-1;} ~seqstack(){} void push(DataType x); DataType pop(); DataType gettop(){if(top!=-1)return data[top];}
2014-10-20 13:39:01
523
1
原创 顺序表和单链表代码
头文件: #ifndef seqlist_H #define seqlist_H const int Maxsize=100; template class seqlist { public: seqlist(){length=0;} seqlist(DataType a[],int n); ~seqlist(){} DataType Get(int i); int
2014-10-17 09:16:48
723
1
原创 作业
#include class test { double x; double y; public: test(double a,double b); test(double A); }; test::test(double a,double b) { x=a+b; y=a*b; } test::test(double A ) { co
2014-09-25 00:31:37
524
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅