- 博客(13)
- 收藏
- 关注
原创 HTML语言简易计算器
小键盘function Button_onclick(num) {if(Text1.value=='0') Text1.value=num;else Text1.value=Text1.value + num;}function Button17_onclick(){Text1.value=Text2.value+Text1.value;Text1.value
2013-03-07 22:33:43
1398
原创 哈夫曼编码
#include "stdio.h"#include "stdlib.h"#define N 10int A[2*N];//标志数组,用于Select函数typedef struct { char value; int weight; int parent; int lchild; int rchild;}HTNode;//HuffManTree结点typedef struc
2013-01-17 23:02:08
865
原创 数据结构邻接表的建立以及两种遍历
静下心,去思考,思路便会清晰,程序基本框架便会浮现在脑海中#include "stdio.h"#include "stdlib.h"#define MAX_VEX_NUM 20#define OK 1#define ERROR 0typedef int Status;int visited[20];第一部分 存储结构typedef struct ArcNode {
2012-12-16 20:21:59
787
原创 数据结构图的数组表示法以及深度,广度遍历
#include"stdio.h"#include"stdlib.h"#define MAX_VERTEX_NUM 10#define OK 1#define ERROR 0#define OVERFLOW -1#define maxsize 100typedef int QElemType;typedef int VRType;typedef int InfoType;typ
2012-12-15 22:06:06
1784
原创 C语言函数指针小结
C语言(谭浩强第五版)函数指针复习怎样定义一个函数指针:指针类型名 (*指针变量名)(函数参数表列)//参数表列中只需给出参数类型即可/* 8.5.3 (8.22)*/#include "stdio.h"void main(){ int max(int x,int y);//函数申明 int a,b,c; int (*p)(int,int);/*第一个int表示函数值类
2012-11-18 20:31:07
785
原创 数据结构二叉树的建立以及递归遍历
/* Note:Your choice is C IDE */#include "stdio.h"#include "stdlib.h"#define OK 1#define ERROR 0#define OVERFLOW -1typedef char TElemType;typedef int Status;/*************struct***************/
2012-11-18 15:14:13
983
3
原创 数据结构循环队列以及打印杨辉三角
#include "stdio.h"#include"malloc.h"#include"stdlib.h"#define OK 1#define ERROR 0#define OVERFLOW -1#define maxsize 100typedef int QElemType;typedef int Status;/******************struct******
2012-11-18 15:08:18
1345
1
原创 数据结构(C语言版)链队列的基本操作
#include"stdio.h"#include"malloc.h"#include"stdlib.h"#define OK 1#define ERROR 0#define OVERFLOW -1typedef int QElemType;typedef int Status;/***************存储结构**************/type
2012-11-18 15:03:37
1114
原创 数据结构栈应用括号匹配
#include#include#include"stdlib.h"#define stack_init_size 100#define stackincrement 10#define ok 1#define error 0#define overflow -1typedef int s
2012-11-18 14:57:33
630
原创 数据结构(C语言版)栈的实现进制的转换
/* Note:Your choice is C IDE */#include "stdio.h"#include#define ok 1#define error 0#define overflow#define stack_init_size 50#define stackincrement 5typedef int status;typedef int selemtype;
2012-11-18 14:55:18
1225
1
原创 数据结构(c语言版)链表的实现以及合并
/* Note:Your choice is C IDE */#include "stdio.h"#include"malloc.h"#include"stdlib.h"//包含exit()函数的头文件,以及system("pause")#define OK 1#define error 0#define OVERFLOW -1typedef int Status;typedef
2012-11-18 14:50:30
1264
原创 c语言实现数据结构顺序表源代码
#include#include#include"stdlib.h"#define list_init_size 100#define listincrement 10#define ok 1#define error 0#define overflow -1typedef int elemtype;typedef
2012-11-18 14:39:53
1400
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人