top of page

PRÁCTICA 7. Sobrecarga De Operadores

  • Foto del escritor: Yoel Jimenez Tapia
    Yoel Jimenez Tapia
  • 4 may 2016
  • 1 Min. de lectura

- Ejercicio 1.

Cree una clase llamada FRACCIONAL en donde haga las sobrecargas siguientes:

FRACCIONAL operator +(FRACCIONAL &); FRACCIONAL operator -(FRACCIONAL &); FRACCIONAL operator / (FRACCIONAL &); FRACCIONAL operator * (FRACCIONAL &); FRACCIONAL operator != (FRACCIONAL &); FRACCIONAL operator > (FRACCIONAL &); FRACCIONAL operator < (FRACCIONAL &); friend istream &operator >>(istream &, FRACCIONAL &); friend ostream &operator <<(ostream &, FRACCIONAL &);

Usando adecuadamente la herramienta de sobrecarga de operadores.


 
 
 

Comments


Yoel Antonio Jiménez Tapia.

Cristian UrielGonzález Montdasder.

2CM15

Ingeniería En Comunicaciones Y Electrónica

ESIME ZACATENCO

  • Facebook Clean
bottom of page