文件名称:shiyan2
- 所属分类:
- 汇编语言
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-12-11
- 文件大小:
- 5.08mb
- 下载次数:
- 1次
- 提 供 者:
- 梁**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
求一元n次多项式的值
一个n次多项式如:
其中 被称为系数。在本题中使用LinkedList类,其数据记录项Term中包含每一项的系数
及x的幂次。
struct Term
{
double coeff
int power
}
在程序中以(系数、幂次)对的序列输入一个多项式。在输入的幂次为0时终止程序,将每对系数/幂次存储到按幂次排序的链表中。
(a)按以下形式输出结果多项式中的每一项
ai*x^i
(b)输入x的3个值并调用函数
double poly(LinkedList<Term>&f, double x)
求出多项式的值并输出结果。
-Seeking an n times n times the value of the polynomial polynomial such as: which is called the coefficient. In this problem, use the LinkedList class contains a coefficient and a power of x times in its data entry Term. struct Term {double coeff int power } Enter a polynomial (coefficient, power) sequence in the program. The input power of 0 to terminate the program, each pair of coefficients/power storage to power sorted linked list. (A) the following form output to each one of the polynomial AI* X ^ i (b) the input x 3 value and call the function of double poly (LinkedList <Term> & F, double x) obtained polynomial values and output results.
一个n次多项式如:
其中 被称为系数。在本题中使用LinkedList类,其数据记录项Term中包含每一项的系数
及x的幂次。
struct Term
{
double coeff
int power
}
在程序中以(系数、幂次)对的序列输入一个多项式。在输入的幂次为0时终止程序,将每对系数/幂次存储到按幂次排序的链表中。
(a)按以下形式输出结果多项式中的每一项
ai*x^i
(b)输入x的3个值并调用函数
double poly(LinkedList<Term>&f, double x)
求出多项式的值并输出结果。
-Seeking an n times n times the value of the polynomial polynomial such as: which is called the coefficient. In this problem, use the LinkedList class contains a coefficient and a power of x times in its data entry Term. struct Term {double coeff int power } Enter a polynomial (coefficient, power) sequence in the program. The input power of 0 to terminate the program, each pair of coefficients/power storage to power sorted linked list. (A) the following form output to each one of the polynomial AI* X ^ i (b) the input x 3 value and call the function of double poly (LinkedList <Term> & F, double x) obtained polynomial values and output results.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
project2\Debug\project2.exe
........\.....\project2.ilk
........\.....\project2.pdb
........\ipch\project2-24079fe6\project2-706ddc75.ipch
........\project2\Debug\CL.read.1.tlog
........\........\.....\CL.write.1.tlog
........\........\.....\link-cvtres.read.1.tlog
........\........\.....\link-cvtres.write.1.tlog
........\........\.....\link.2592-cvtres.read.1.tlog
........\........\.....\link.2592-cvtres.write.1.tlog
........\........\.....\link.2592.read.1.tlog
........\........\.....\link.2592.write.1.tlog
........\........\.....\link.4464-cvtres.read.1.tlog
........\........\.....\link.4464-cvtres.write.1.tlog
........\........\.....\link.4464.read.1.tlog
........\........\.....\link.4464.write.1.tlog
........\........\.....\link.560-cvtres.read.1.tlog
........\........\.....\link.560-cvtres.write.1.tlog
........\........\.....\link.560.read.1.tlog
........\........\.....\link.560.write.1.tlog
........\........\.....\link.7704-cvtres.read.1.tlog
........\........\.....\link.7704-cvtres.write.1.tlog
........\........\.....\link.7704.read.1.tlog
........\........\.....\link.7704.write.1.tlog
........\........\.....\link.read.1.tlog
........\........\.....\link.write.1.tlog
........\........\.....\mt.read.1.tlog
........\........\.....\mt.write.1.tlog
........\........\.....\project2.exe.embed.manifest
........\........\.....\project2.exe.embed.manifest.res
........\........\.....\project2.exe.intermediate.manifest
........\........\.....\project2.lastbuildstate
........\........\.....\project2.log
........\........\.....\project2_cpp1.obj
........\........\.....\project2_manifest.rc
........\........\.....\rc.read.1.tlog
........\........\.....\rc.write.1.tlog
........\........\.....\vc100.idb
........\........\.....\vc100.pdb
........\........\project2.vcxproj
........\........\project2.vcxproj.filters
........\........\project2.vcxproj.user
........\........\project2_cpp1.cpp
........\project2.sdf
........\project2.sln
........\project2.suo
........\ipch\project2-24079fe6
........\project2\Debug
........\Debug
........\ipch
........\project2
project2