搜索资源列表
完全数
- 如果一个数恰好等于它的因子之和,则称该数为“完全数”。 *题目分析与算法设计 根据完全数的定义,先计算所选取的整数a(a的取值1~1000)的因子,将各因子累加于m,若m等于a,则可确认a为完全数。 *-if it is equal to the sum of the factor, says the number of "totally few." * Topic analysis and algorithm design based on the defin
simpleMathFunctions
- some simple but time wasting math logic 一些不难但麻烦(适合用电脑作)的数学函数的源码 1.Test for Prime numbers 2.Find the factorial of a number 3.Find the triangle(total sum) of a number 4.Reverse every integer of a number 5.Find any power of any value 6.Fin
YFFXQ
- 使用递归子程序法设计一个语法分析程序,自顶向下分析方法. 1、使用递归下降分析算法分析表达式文法: exp ::= exp addop term | term addop ::= + | - term ::= term mulop factor | factor mulop ::= * | / factor ::= (exp) | number 其中number可以是多位的十进制数字串(整数即可),因此这里还需要一个小的词法分析器来得到number的值。 2、该
require-the-use-of-a-linked-
- 题目说明: 要求采用链表形式,求两个一元多项式的乘积:h3 = h1*h2。函数原型为:void multiplication( NODE * h1, NODE * h2, NODE * h3 )。 输入: 输入数据为两行,分别表示两个一元多项式。每个一元多项式以指数递增的顺序输入多项式各项的系数(整数)、指数(整数)。 例如:1+2x+x2表示为:<1,0>,<2,1>,<1,2>, 输
5
- 提示用户输入一个整数,并判断是否是素数,如果是将输出它本身,否则输出所有的真因子-Prompts the user to enter an integer, and determine whether it is a prime number, and if the output itself, otherwise the output of all the true factor