Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include <list>
using namespace std;
int main ()
{
list<int> exp_of_poly1;
list<int> exp_of_poly2;
exp_of_poly1.push_back (2);
exp_of_poly1.push_back (1);
exp_of_poly1.push_back (0);
exp_of_poly2.push_back (2);
exp_of_poly2.push_back (0);
//...
return 0;
}
class Polynom: public std::map<unsigned,long>
{
public: // define poly ops (+,-,*,operator-()) etc
...
};
ostream& operator << (ostream&,const Polynom&)