#include<iostream>
#include<stdio.h>
#include<stdlib.h>
using namespace std;
typedef struct Node* List;
struct Node
{
List next;//指向下一个结点
int x;//指数
int z;//系数
};
List Read()
{
List L = new Node;
List head = L;
int n=0;
cout << "请输入你的多项式的项数(项数不可以是0或者负数!)" << endl;
cin >> n;
for (int i = 0; i < n; i++)
{
int x, z;
List temp = new Node;
cout << "请输入第:" << i + 1 << "项指数" << endl;
cin
一元多项式的加减乘除运算(c++实现)—数据结构学习
最新推荐文章于 2022-11-02 18:58:22 发布
本文介绍了如何使用C++编程语言实现一元多项式的加法、减法、乘法和除法操作。通过数据结构的学习,详细探讨了多项式运算的算法实现,并提供了相应的代码示例。
摘要由CSDN通过智能技术生成