Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Dec 7th, 2018 50 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. #ifndef POLINOMIO_H
  2. #define POLINOMIO_H
  3.  
  4. #include <iostream>
  5.  
  6. class Polinomio {
  7.  
  8.     friend Polinomio operator ++ (Polinomio &);
  9.     friend Polinomio operator ++ (Polinomio &, int);
  10.    
  11.     friend Polinomio operator -- (Polinomio &);
  12.     friend Polinomio operator -- (Polinomio &, int);
  13.  
  14.     friend std::ostream& operator << (std::ostream&, Polinomio&);
  15.     friend std::istream& operator >> (std::istream&, Polinomio&);
  16.  
  17. private:
  18.     int* coeficiente;
  19.     int grado;
  20.  
  21. public:
  22.     Polinomio(int = 1);
  23.  
  24.     Polinomio(Polinomio&);
  25.  
  26.     ~Polinomio();
  27.  
  28.     int getGrado(void);
  29.     void setGrado(int);
  30.     int getCoeficiente(int);
  31.     void setCoeficiente(int, int);
  32.  
  33.     Polinomio operator + (Polinomio &);
  34.     Polinomio operator - (Polinomio &);
  35.     Polinomio operator * (Polinomio &);
  36.     Polinomio operator = (Polinomio &);
  37. };
  38.  
  39. #endif
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