Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Class.cpp"
- int main(){
- freopen("input.txt", "r", stdin);
- freopen("output.txt", "w", stdout);
- Polynom <int> q(3);
- Polynom <int> m(3);
- for(int i = 0; i < 4; i++){
- int x;
- cin >> x;
- q.koef[i] = x;
- }
- for(int i = 0; i < 4; i++){
- int x;
- cin >> x;
- m.koef[i] = x;
- }
- Polynom <int> r(3);
- Polynom <int> s(3);
- s = q - m;
- r = q + m;
- r.print();
- cout << endl;
- s.print();
- cout << endl;
- cout << q.sum();
- cout << q;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement