📄 driver.cpp
字号:
#include "Polynomial.h"
#include <iostream>
using namespace std;
int main()
{
int n = 0;
cout<<"enter the number of terms in the polynomial a: ";
cin>>n;
Polynomial a(n);
cout<<"enter the number of terms in the polynomial b: ";
cin>>n;
Polynomial b(n);
cin>>a;
cin>>b;
cout<<a;
cout<<b;
Polynomial c(a);
cout<<c;
cout<<"enter the number of terms in the polynomial d: ";
cin>>n;
Polynomial d(n);
cin>>d;
d = b;
cout<<d;
float x;
cout<<"enter x to Evaluate polynomial a: ";
cin>>x;
cout<<a.Evaluate(x)<<endl<<endl;
cout<<a+b;
cout<<a-b;
cout<<a*b;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -