Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __UNIT_H__
- #define __UNIT_H__
- #include <iostream>
- class polynom
- {
- public:
- int n;
- double *x;
- polynom();
- ~polynom();
- polynom(int n,double *x);
- polynom(const polynom &O)
- {
- std::cout<<"COPY\n";
- n=O.n;
- x=new double[n+1];
- std::cout<<"Adas\n";
- for(int i=0; i<=n; i++)
- {
- x[i]=O.x[i];
- std::cout<<x[i]<<" ";
- }
- std::cout<<"\n";
- }
- polynom operator+(polynom &); // Сложение
- polynom operator*(polynom &); // Перемножение
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement