文件名称:One-yuan-polynomial-multiplication
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
题目说明:
要求采用链表形式,求两个一元多项式的乘积:h3 = h1*h2。函数原型为:void multiplication( NODE * h1, NODE * h2, NODE * h3 )。
输入:
输入数据为两行,分别表示两个一元多项式。每个一元多项式以指数递增的顺序输入多项式各项的系数(整数)、指数(整数)。
例如:1+2x+x2表示为:<1,0>,<2,1>,<1,2>,
输出:
以指数递增的顺序输出乘积: <系数,指数>,<系数,指数>,<系数,指数>,
零多项式的输出格式为:<0,0>,
-Topic Descr iption: requires a linked list, find the product of two one yuan polynomial: h3 = h1* h2. Function prototype: void multiplication (NODE* h1, NODE* h2, NODE* h3). Input: Input data for the two lines represent two one yuan polynomial. Each one yuan polynomial exponentially increasing order input polynomial coefficients (integer), index (integer). For example: 1+2x+x2 expressed as: < 1,0> , < 2,1> , < 1,2> , output: output exponentially increasing order product: < coefficient index> , < coefficient index> , < coefficient index > zero polynomial output format: < 0,0> ,
要求采用链表形式,求两个一元多项式的乘积:h3 = h1*h2。函数原型为:void multiplication( NODE * h1, NODE * h2, NODE * h3 )。
输入:
输入数据为两行,分别表示两个一元多项式。每个一元多项式以指数递增的顺序输入多项式各项的系数(整数)、指数(整数)。
例如:1+2x+x2表示为:<1,0>,<2,1>,<1,2>,
输出:
以指数递增的顺序输出乘积: <系数,指数>,<系数,指数>,<系数,指数>,
零多项式的输出格式为:<0,0>,
-Topic Descr iption: requires a linked list, find the product of two one yuan polynomial: h3 = h1* h2. Function prototype: void multiplication (NODE* h1, NODE* h2, NODE* h3). Input: Input data for the two lines represent two one yuan polynomial. Each one yuan polynomial exponentially increasing order input polynomial coefficients (integer), index (integer). For example: 1+2x+x2 expressed as: < 1,0> , < 2,1> , < 1,2> , output: output exponentially increasing order product: < coefficient index> , < coefficient index> , < coefficient index > zero polynomial output format: < 0,0> ,
(系统自动生成,下载前可以参看下载内容)
下载文件列表
One yuan polynomial multiplication.cpp