上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 1 #include "stdio.h"/*头文件*/ 2 #include "string.h" 3 #include "stdlib.h" 4 #define LEN sizeof(struct student)/*宏定义*/ 5 int n = 0;/*n为静态全局变量,本文件模块中各函数均可 阅读全文
posted @ 2016-01-08 09:19 指间ゝ繁华初逝的格调 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <time.h> 3 #include <stdlib.h> 4 5 #define MAXN 150 //最大节点数 6 #define INF ((1<<31)-1) //无穷大数 7 8 int dist[MAXN][MAXN]; 阅读全文
posted @ 2016-01-04 01:45 指间ゝ繁华初逝的格调 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<fstream> 3 #include<string> 4 using namespace std; 5 #define maxlen 100 6 7 //---------------------------------基类----- 阅读全文
posted @ 2016-01-01 23:36 指间ゝ繁华初逝的格调 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdio.h" 2 #include "stdlib.h" 3 #include "malloc.h" 4 5 const int maxlen=1000;//线性表的最大长度 6 typedef char type; 7 8 struct Data{ 9 char nam 阅读全文
posted @ 2016-01-01 11:26 指间ゝ繁华初逝的格调 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdio.h" 2 #include "malloc.h" 3 4 #define maxlen 100 5 #define infinity 65535 6 7 struct bnode 8 { 9 int data;//数据 10 bnode *lchild,*rchi 阅读全文
posted @ 2015-12-31 18:47 指间ゝ繁华初逝的格调 阅读(1906) 评论(0) 推荐(0) 编辑
摘要: 1 #include"stdio.h" 2 #include"stdlib.h" 3 #include"malloc.h" 4 5 6 const int maxlen=1000;//线性表的最大长度 7 typedef char type; 8 //------------线性表--------- 阅读全文
posted @ 2015-12-29 04:25 指间ゝ繁华初逝的格调 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 1 #include"stdio.h" 2 #include"stdlib.h" 3 #include"malloc.h" 4 5 6 const int maxlen=1000;//线性表的最大长度 7 8 //------------线性表------------------ 9 struct 阅读全文
posted @ 2015-12-28 23:39 指间ゝ繁华初逝的格调 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdio.h" 2 const int maxlen = 1000; 3 #define infinity 65535 4 5 struct encode{ 6 char Data[maxlen];//存储编码(字符类型) 7 int count;//编码的位数 8 }; 阅读全文
posted @ 2015-12-28 14:14 指间ゝ繁华初逝的格调 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 顺序线性表的操作 (4人)⑴ 问题描述:已知两长度相同的定长数组,他们分别存放相同个数的整数。实现要求:⑴ 两个数组大小的比较。若第一个数组中的数比第二个数组中的数大的个数大于第一个数组中的数比第二个数组中的数小的个数,认为第一个数组大;若第一个数组中的数比第二个数组中的数大的个数小于第一个数组中的 阅读全文
posted @ 2015-12-27 21:29 指间ゝ繁华初逝的格调 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<string> 3 using namespace std; 4 5 const int N=30; 6 int min(int n,int m)//返回两个数中的最小一个数 7 { 8 return (n<m) ? n : m; 9 } 阅读全文
posted @ 2015-12-27 06:09 指间ゝ繁华初逝的格调 阅读(221) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页