登录
首页 » EditBox » 1、 程序功能:本程序实现多项式的求和运算,在遇到指数相同时实行系数相加或相减,指数不同的照原样输出。最后分别输出系数和指数。 2、 运行环境:...

1、 程序功能:本程序实现多项式的求和运算,在遇到指数相同时实行系数相加或相减,指数不同的照原样输出。最后分别输出系数和指数。 2、 运行环境:...

于 2023-08-10 发布 文件大小:6.10 kB
0 87
下载积分: 2 下载次数: 1

代码说明:

1、 程序功能:本程序实现多项式的求和运算,在遇到指数相同时实行系数相加或相减,指数不同的照原样输出。最后分别输出系数和指数。 2、 运行环境:C++ 3、 算法描述:首先,把输入的的多项式进行分析,把所有的系数放入一个单链表中llist,指数放入另一个单链表llist2中。然后再在指数链表中比较有没有相同的指数,如果有相同的指数,那就把相对应的系数进行求和,并把求和结果归并到llist2中;如果指数不相等的,就直接归并到llist2中。最后以指数的降幂形式输出。 -1, function : the program summation Operational polynomial, in the face of phase with the introduction of index coefficient of additive or subtraction, the index of output as it stood. The final output coefficients and the respective indices. Two, the environment : C 3, the algorithm Description : First, the importation of a polynomial analysis of all the factors into a single linked list (which, the index Add another single linked list llist2 China. Then in the index compared Linklist have the same index, if the same index, then the corresponding coefficient for peace, and the summation of the results of merging llist2; If the index is not equal, direct incorporation of llist2 China. The final index to a lower output in the form of pow

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 一个C语言编写的小程序,发挥";速算24点…
    一个用C语言编写的小程序,玩过“速算24点”的朋友一定知道这是一个考验快速口算能力的小游戏,但其中包含了统筹思想,该程序是由用户输入4个数字,计算机程序计算出该四个数字通过加减乘除四则运算得到结果为24的一种算法。小巧实用,运行于DOS环境,有密码,密码为在下的名字汉语拼音(全部小写)。 -a C language prepared by the small programs and played "quick count 24 points," friends will know that this is a test of rapid population count of small game, but contains ideas for planning, the program is user input from the four figures, a computer program calculated the figures by four arithmetic 4 Operational Results will be available for a 24 algorithm. Compact and practical, running on the DOS environment and password, the password for the next Chinese pinyin name (all lowercase).
    2023-06-17 14:50:04下载
    积分:1
  • * Function: Input Double number in CEdit * 支持拷贝和粘贴,粘贴的时候只支持数字和一个小数点,不让支持负号 *...
    * Function: Input Double number in CEdit * 支持拷贝和粘贴,粘贴的时候只支持数字和一个小数点,不让支持负号 * Last Update Date: 02-04-2009 11:32:06 Guang Zhou Logansoft.com * Last Update Date: 02-05-2009 10:17:46 Guang Zhou Logansoft.com * * 使用方法: * Add to Project file:EditNumeric.h/CPP * Add the follow code in your StdAfx.h * #include "EditNumeric.h" * CEditNumeric m_Edit1-* Function: Input Double number in CEdit * 支持拷贝和粘贴,粘贴的时候只支持数字和一个小数点,不让支持负号 * Last Update Date: 02-04-2009 11:32:06 Guang Zhou Logansoft.com * Last Update Date: 02-05-2009 10:17:46 Guang Zhou Logansoft.com * * 使用方法: * Add to Project file:EditNumeric.h/CPP * Add the follow code in your StdAfx.h * #include "EditNumeric.h" * CEditNumeric m_Edit1
    2022-07-04 06:40:23下载
    积分:1
  • IP地址输入的控件
    IP地址输入的控件-IP address input control
    2022-04-20 17:23:46下载
    积分:1
  • [转载]带提示的组合编辑框。作者Tom Archer。
    [转载]带提示的组合编辑框。作者Tom Archer。-[reproduced] with a combination of editorial suggested frame. Author Tom Archer.
    2022-02-12 09:43:34下载
    积分:1
  • 只读编辑框,限制字符输入,只读文字灰度定制等等,
    只读编辑框,限制字符输入,只读文字灰度定制等等,-CD-editing box, restricting the importation of characters, custom CD-gray text, etc.,
    2022-03-12 11:26:55下载
    积分:1
  • 又一个可以标注特殊字符的语法编辑框
    又一个可以标注特殊字符的语法编辑框-another phrasing edit which can label special chars
    2023-03-08 23:05:03下载
    积分:1
  • Java Chat 3, when the machines contain a number of SDK version, see how it is us...
    JAVA聊天3、当机器内装有多个SDK版本时,如何查看所用的是哪个SDK? java -verbose 在出现的屏幕信息中可以看出系统装载的是哪个目录下的文件。-Java Chat 3, when the machines contain a number of SDK version, see how it is used in which SDK? Java-verbose in the screen information can be seen loading system which is a document directory.
    2023-03-29 17:55:03下载
    积分:1
  • VC代码
    VC++开发代码-VC code
    2023-09-04 05:00:03下载
    积分:1
  • TextEdit,文本编辑程序。使用SWT编辑。只有一个java文件,需编译成class文件...
    TextEdit,文本编辑程序。使用SWT编辑。只有一个java文件,需编译成class文件-TextEdit, a text editor. Editorial use SWT. Java is only a document required documents compiled class
    2022-04-16 05:34:03下载
    积分:1
  • 带spin控件的数字输入框
    带spin控件的数字输入框-The edit which contains spin control
    2023-02-02 07:10:03下载
    积分:1
  • 696518资源总数
  • 106174会员总数
  • 31今日下载