搜索资源列表
四级上机_30
- 全国计算机等级考试四级上机的部分练习题,配有我自己写的算法,算法说明和输入输出文件,使实验起来更容易。算法比较简洁易懂,大概有三十题左右(已经去掉了重复和类似的),对考四级的朋友和正在学习C的朋友会有帮助的-National Computer Rank Examination four aircraft on the part Exercises, equipped with my own writing algorithm, the algorithm descr iption and inp
cengxubianlierchashu
- shi.c 说明:本程序用于层序遍历二叉树.程序开始时先由用户先根序输入二叉树各结点值,对于空结点输入宏ENDTAG所对的值(暂定为整数0). 建立好二叉树后即可自动进行遍历依次层序输出各结点的值. ----Author:zhg 2006.11.26 E-mail: wudazhg@163.com 仅供参考学习之用,所有权保留-shi.c : The procedures for the binary tree traversal sequence. procedure
RadixSort-jishupaixu
- RadixSort.c 本程序为链式基数排序。程序开始后先由用户输入一组正整数(最大为32767),然后程序自动按照由小到大的顺序将这组数排序并输出。----Author:zhg 2006.12 E-mail:wudazhg@163.com-RadixSort.c procedures for the chain of the order of the base. After the first process user input a positive integer (maximum 3
LevelTraverse-cengxubianlierchashu
- LevelTraverse.c 上次写的“cengxubianlierchashu.rar(二叉树层序遍历程序)”遍历不能将二叉树的所有结点都遍历,现对其做了微小修改,并调试好。本程序用于层序遍历二叉树.程序开始时先由用户先根序输入二叉树各结点值,建立好二叉树后即可自动进行遍历依次层序输出各结点的值.----Author:zhg 2006.12 E-mail:wudazhg@163.com -LevelTraverse.c last book, "cengxubianlier
haffman_tree
- 我的一次数据结构课程设计HUFFMAN树的C++源代码,基本功能有: 1.显示27个字符的haffman编码; 2.输入m个字符,对应27个字符的权值进行haffman编码; 3.输入一串字符,用已经定义的haffman编码输出;-a data structure course design Speed HUFFMAN tree C source code, the basic function : 1. show 27 characters haffman coding; 2. m
hafuuman
- 关于哈夫曼编码的C程序 自动统计并编码,同时实现了文件的读取,和良好的C环境下输入输出健壮性-Huffman coding on the C statistics and automatically encoding, while achieving the document read, and good input and output C environment robustness
C
- Descr iption 一个一元多项式可以看作由若干个一元单项式按降幂排列成的线性表。请编写程序对输入的两个一元多项式求积,并输出求积的结果。 Input 输入为两个一元多项式,每个一元多项式输入一行,按照降幂依次输入每个单项式的系数和指数,并以-1 -1作为结束。 系数和指数均为整数,指数不小于0。 Output 输出为求积结果多项式,按照降幂依次输出每个单项的系数和指数,每个数值后面用一个空格隔开,输出结果多项式后换行。 系数为0的单项式不得
tools_time_series_datas
- 主要处理时序数据的相应工具代码,共包括了五个C源代码,具体的输入格式与输出请参见各个程序,写的非常清楚-Mainly deal with time-series data of the corresponding tools, code, a total of five C source code, the specific input and output formats see all procedures, written in very clear
comparing-the-output-in-alphabetical
- 用c++语言编程实现了输入n个国家名,按字母比较后输出排序后的国家名-Using c++ programming language, the input of n country name, after comparing the output in alphabetical order after the country name
qpl
- 实现字符的全排列,C++ 源代码,如 输入a,b,c,就会输出全排列:aa,bb,cc,ab,ac,bc-Achieve full array of characters, C++ source code, such as the input a, b, c, it will output the whole array: aa, bb, cc, ab, ac, bc
complex
- .h文件。c++中的复数类,能够直接完成基本四则运算,输入输出流,完成一定范围内的比较运算-. H file. c++ classes in the plural, to directly perform basic arithmetic, input and output streams, to complete a range of comparison operators
ee
- 用C++环境建立一个链表,输入及输出内容-In C++ environment to create a linked list, the input and output
wanghaosuanfa
- 王浩算法的C实现,对输入的逻辑式,可以输出王浩算法的推理过程和所用的定理号。-Wang Hao algorithm C implementation, the input logical form, can output Wang Hao algorithm for the inference process and the used by the theorem.
tree_sanyuanzu
- 假设以如下说明的三元组 (F、C、L/R) 序列输入一棵二叉树的诸边(其中 F 表示双亲结点的标识,C 表示孩子结点标识,L/R 表示 C 为 F 的左孩子或右孩子),且在输入的三元组序列中,C 是按层次顺序出现的。设结点的标识是字符类型。F=‘^’时 C 为根结点标识,若 C 亦为‘^’,则表示输入结束。试编写算法,由输入的三元组序列建立二叉树的二叉链表,并以中序序列输出。 -Assumed that the input to the following descr iption of th
binary-search
- C语言数据结构 输入前序和中序,输出后序遍历 遍历二叉树的一个程序-Preamble and in the sequence in the C language data structure input, the output after the preorder traversal binary tree of a program
Polynomial
- 一个d阶多项式有如下形式: cdxd+cd− 1xd− 1+cd− 2xd− 2…+c0 其中,cd≠0,指数都是非负数。每一个cixi是多项式中的一项。 设计一个C++的模板类 Polynomial<T>,T给出系数的类型,要求能够实现多项式的表示和运算。Polynomial类应该包括私有变量degree,和其他需要的变量。对多项式的表示要求用线性表的形式,例如(c0,c1,c2,…,cd)表示系数表。并设计以下成员函数和操
SPECULAR-REFLECTION-OF-A-TREE.cpp
- 一棵树的镜面映射指的是对于树中的每个结点,都将其子结点反序。例如,对左边的树,镜面映射后变成右边这棵树。 a a / | \ / | b c f ===> f c b / \ / d e e d 我们在输入输出一棵树的时候,常常会把树转换成对应的二叉树,而且对该二叉树中只有单个子结点的分支结点补充一个虚子结点“$”,形成“伪满二叉树”。 例如,对下图左边的树,得到下图右边的伪满二叉树 a a / | \ / b c f ===> b $
biaodashi
- C语言,输入中缀表达式字符序列。输出:求值过程:每一步读入的字符和对象栈,运算符栈的变化情况以及最终结果。-C language, a sequence of characters input infix expression. Output: the uation process: read every step of the characters and objects into the stack, the stack changes the operator and the final
ttt
- 题目描述】 给定一个R行C列的01矩阵,求一个最大的正方形全1子矩阵,并输出该最大正方形子矩阵的面积。 【输入】 第一行给出两个正整数R,C,表示矩阵有R行C列; 接下来R行C列给出这个01矩阵,行内相邻两元素用一个空格隔开。 【输出】 一个数,最大正方形子矩阵的的面积(即1的个数)。 输入输出样例】-Topic Descr iption Given a R rows C 01 column matrix, find
魔王语言文本
- C语言 魔王语言解释 用栈和队列解决 注意看问题输入和输出 问题输入 多组数据,每组数据为一个字符串,每行表示一个待翻译的字符串,字符串为”***”时表示输入结束。 问题输出 将每一行字符串按规则翻译后输出 输入样例 BAB B(ehnxgz)B B(eABh)B *** 输出样例 tsaedsaesaetsaedsae tsaedsaeezegexenehetsaedsae tsaedsaeehetsaedsaeesaeets