- 博客(8)
- 收藏
- 关注
原创 一个实现统计班级分数排名的系统...
<br />#include<iostream>#include<algorithm>#include<stdlib.h>#include<string>#include<fstream>using namespace std;int count_user,count_classes,count_language,count_submit;class student_user//定义学生信息.{public: string num;//定义学生学号..... st
2010-12-26 10:34:00 903
原创 链式队列的存储....
<br />/*链式队列的存储结构*/ #include<iostream>using namespace std;typedef struct node{ int data; struct node *next;} LinkQueue;//定义链式队列的节点.... typedef struct { LinkQueue *front; LinkQueue *rear;}Queue;void Init_LinkQueue(Queue *Q)//初始化链队
2010-12-19 19:15:00 448
原创 队列的顺序存储的基本操作.....
<br />/*顺序存储队列的基本的操作*/#include<iostream>using namespace std;#define Queue_MaxSize 100typedef struct{ int elem[Queue_MaxSize]; int front; int rear; int length;}Queue;void Init_Queue(Queue *Q){ Q->rear=Q->front=0; Q->length=0;}
2010-12-16 14:01:00 479
原创 队列的顺序存储的基本操作.....
<br />/*顺序存储队列的基本的操作*/#include<iostream>using namespace std;#define Queue_MaxSize 100typedef struct{ int elem[Queue_MaxSize]; int front; int rear; int length;}Queue;void Init_Queue(Queue *Q){ Q->rear=Q->front=0; Q->length=0;}
2010-12-16 14:01:00 462
原创 链式栈的基本操作
<br />//链式栈的基本操作....#include<iostream>using namespace std;typedef struct node//构造栈的节点.....{ int data; struct node *next;}LinkStack;void Init_LinkStack(LinkStack *st)//初始化链式栈...{ st->next=NULL;}void Creat_LinkStack(LinkStack *st,int
2010-12-16 13:06:00 732
原创 顺序栈的基本操作....
<br />/*顺序栈的一些操作*/#include<iostream>using namespace std;#define StackMaxSize 100//定义栈的长度....typedef struct Stack{ int elem[StackMaxSize]; int top; int length;}SqStack;void Init_Stack(SqStack *st)//栈的初始化....{ st->elem[StackMaxSize];
2010-12-15 18:53:00 436
原创 链式单链表的插入与删除...
<br />/*链式链表的一些操作*/#include<iostream>using namespace std;typedef struct node{ int data; struct node *next;}SeqList;//定义链表的节点,数据域为整形.....void Creat_List1(SeqList *L,int n)//创建单链表.....(尾插入法){ node *p,*q; int i,x; p=L; for(i=1;i<=n;i
2010-12-15 14:50:00 619
原创 复习一:顺序线性表的操作.
<br />2010-12-08//线性表的插入与删除,合并.<顺序表><br />#include<iostream><br />using namespace std;<br />#define MaxSize 100<br />#define ERROR -1<br />struct LinkList//定义表的节点.<br />{<br />int data[MaxSize];<br />int length;<br />};<br />void InitList(LinkList *A)//初始化
2010-12-08 18:46:00 464
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人