还是先来题目,我们一起看看吧。
输出情况是:
#include<iostream>
using namespace std;
struct Data{
int coef;
int exp;
};
struct Node{
Data data;
Node *next;
};
class Polynomail{
public:
Polynomail(){
first = new Node;
Node *p = first,*s = NULL;
int coef,exp;
cin>