ree a class called Rational for performing arithmetic with fractions write a program to evaluate its class. Use integer variables to represent the private data of the class: numerator and denominator. Provide a constructor that enables an object of this class initialized when declared. The builder should have predetermined value if it is not provided inicializaodres fracion and must store a reduced form. For example the fracion two quarters is stored in the object as 1/2.Proporcione mienbro public functions that you to realize each of the following tasks to add subtract multiply divide in print fraciones modfo a / b as floating point |
|
|
|
|
1>------ Operación Compilar iniciada: proyecto: Racional, configuración: Debug Win32 ------ 1> Racional.cpp 1>Racional.cpp(19): error C2144: error de sintaxis : 'int' debe estar precedido de ')' 1>Racional.cpp(19): error C2660: 'Racional::miRacional::reducir' : la función no acepta 0 argumentos 1>Racional.cpp(19): error C2059: error de sintaxis : ')' ========== Compilar: 0 correctos, 1 incorrectos, 0 actualizados, 0 omitidos ========== |
|
|
|
|