搜索资源列表
MD5加密的C++类
- 这是一个好用的MD5的C++类;这个类可以加在控制台 程序中也可用在MFC中, 并且提供了详细的错误处理 函数,是一个安全的类。例程是一个MD5的MFC程序, 支持字符串和文件两种输入。 LPCSTR TargetFile(char *filename=NULL) //计算文件的MD5值 void TargetStr(LPCSTR str) //计算字符串的MD5值 LPCSTR GetDigestKey() //取MD5运算后的结果 LPCSTR GetErr() //如果有错误,取错误字串
dashujiecheng
- 该源代码利用计算机模拟乘法竖式 计算阶乘 将每位数子保存在用new分配的一长字符数组里 在本人的机子上可计算30000!的精确值 用时近60秒-the source code used a computer simulation multiplication calculation factorial shaft will be preserved for each digit used in the distribution of a new long arrays of characte
线性表数据结构
- VB.net数据结构演示算法,有对话框,填入数列序号,即可得到所需值-VB.net demonstration algorithm data structure, a box filled series serial number can be required value
sqrty
- 此为经典排序算法.采用面向对象的思想,很有接见价值-this classical algorithm. Using object-oriented thinking, value is received
大数的阶层
- 用数组存储一个大数的阶层。输入一个整数n,先求出n!占用的位数。动态开辟bits位数组,用适当方法把n!的值存储到数组里去-storage arrays with a majority of the class. The importation of an integer n, first obtained n! The median occupancy. The median opening bits dynamic group, the use of appropriate means, n
vbC13
- 用VB语言实现偏微分方程的解法 包括解边值问题的松弛法、交替方向隐式方法等-VB language PDE solution of the boundary value problems including Xie relaxation method, alternating direction implicit methods
简单的表达式求值
- 语法分析正确后就可以求值了,求值时用到一个操作数堆栈和操作符堆栈,以及一个算符优先表(存储了运算符之间的优先关系),具体细节可以阅读源码。-syntax analysis is correct after it evaluates the value used for a number of operations and the operator stacks stack, and an operator priority list (stored Operators relations bet
shiyan01
- 功能强大,包括:创建新十字链表、节点删除、节点插入、打印十字链表 、存盘、文件中恢复(读出)矩阵、检索指定矩阵元素(关键字是行列下标) 、检索一个指定矩阵元素(关键字是矩阵元素值)-powerful features, including : creating a new Cross List, delete nodes, the nodes to insert, print Cross Chain, archive, the paper recovery (read) matrix, retr
Huffman程序
- 为得到使电文总长最短的二进制前缀编码,则以n种字符出现的频率作权,设计一棵Huffman树,求出给定权值的字符对应的Huffman编码。-enable the message to be chief of the shortest prefix binary coding, while the n characters of frequencies for the right to design a Huffman tree, obtained the right to set the valu
dddgfgExpressidddon
- 输入一个算术表达式,求出其值,要求表达式输入正确,且数字为0到9之间.并且要以 # 结束。-importation of a math expression, calculated value, the correct expression input requirements and the number of between 0-9. And to the end #.
重言式判别问题
- 逻辑表达式从终端输入,长度不超过一行。逻辑运算符包括“|”、“&”和“~”,分别表示或、与和非,运算优先程度递增,但可有括号改变,即括号内的运算优先。逻辑变元为大写字母。表达式中任何地方都可以含有多个空格符。 若是重言式或矛盾式,可以只显示“True Forever”或“False Forever”,否则显示“Satisfactible”以及变量名序列,与用户交互。若用户对表达式变元取定一组值,程序就求出并显示逻辑表达式的值。-logic expression from the termin
c++io
- C++中输入输出的例子,对于C++入门的学者来说有一定的参考价值,可以学习C++的基本语法-C input and output example, the entry for C scholars have some reference value, can learn the basic syntax C
nearpiont
- 最接近点对问题是求二维坐标中的点对问题,该算法是为了将平面上点集S线性分割为大小大致相等的2个子集S1和S2,我们选取一垂直线l:x=m来作为分割直线。其中m为S中各点x坐标的中位数。由此将S分割为S1={p∈S|px≤m}和S2={p∈S|px>m}。从而使S1和S2分别位于直线l的左侧和右侧,且S=S1∪S2 。由于m是S中各点x坐标值的中位数,因此S1和S2中的点数大致相等。 递归地在S1和S2上解最接近点对问题,我们分别得到S1和S2中的最小距离δ1和δ2。现设δ=min(δ
ound
- 这是用C语言编写的声音算法,电脑会发生声音,简单,可读性,值我的我们学习。-This is the C language voice algorithm, the computer voice will happen, simple, readable, and I value our study.
accept
- 数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in
Expression-of-Value
- xoj上的一道题目,要求输入一连串的四则运算表达式,然后求值,输入的运算数字范围是0-9999,结果在32整形之内。此程序用到了堆栈,涉及知识比较广-xoj on a subject, asked to enter a series of arithmetic expressions, and then find the value, enter the operation number in the range 0-9999, the results within 32 plastic. Th
find-the-maximum-value
- find the maximum value,找出一组数据的最大值。-find the maximum value
formula-for-calculating--true-value
- 计算命题演算公式的真值,所谓命题演算公式是指由逻辑变量(其值为TRUE或FALSE)和逻辑运算符∧(AND)、∨(OR)和┐(NOT)按一定规则所组成的公式(蕴含之类的运算可以用∧、∨和┐来表示)。公式运算的先后顺序为┐、∧、∨,而括号()可以改变优先次序。已知一个命题演算公式及各变量的值,要求设计一个程序来计算公式的真值。 要求: (1)利用二叉树来计算公式的真值。首先利用堆栈将中缀形式的公式变为后缀形式;然后根据后缀形式,从叶结点开始构造相应的二叉树;最后按后序遍历该树,求各子树之值
Calculationof-true-value
- 所谓命题演算公式是指由逻辑变量(其值为TRUE或FALSE)和逻辑运算符∧(AND)、∨(OR)和┐(NOT)按一定规则所组成的公式(蕴含之类的运算可以用∧、∨和┐来表示)。公式运算的先后顺序为┐、∧、∨,而括号()可以改变优先次序。已知一个命题演算公式及各变量的值,要求设计一个程序来计算公式的真值。-The so-called propositional calculus formula refers to the logical variable (its value is TRUE or
Frequency-value
- 频率值。要求输入一个非递减序列,再输入所要查询的区间,然后统计此区间内出现最多的值的次数。-Frequency value. Asked to enter a non-decreasing sequence, and then enter the query interval, then the number of statistics in this range the most value.
