SHARE
TWEET

asd

a guest Feb 21st, 2020 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2. #ifndef POLINOMIO_H
  3. #define POLINOMIO_H
  4. #include <iostream>
  5. #include <ostream>
  6.  
  7. using namespace std;
  8.  
  9. class Polinomio
  10. {
  11.     friend ostream& operator<<(ostream&, const Polinomio&);
  12.     friend Polinomio& operator+( const Polinomio&, const Polinomio&);
  13.     friend Polinomio& operator-(const Polinomio&, const Polinomio&);
  14.     friend Polinomio& operator*(const Polinomio&,const Polinomio&);
  15. private:
  16.     int coeficientes[30], exponentes[30], cantidad = 0;
  17. public:
  18.     Polinomio();
  19.     ~Polinomio();
  20.     void ingresarTerminos();
  21.     void ordenar_Polinomio();
  22. };
  23.  
  24. #endif // !POLINOMIO_H
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top