#include <iostream>;
#include <cmath>;
usingnamespace std;
class rational
{
private:
int num2;
int denom2;
public:
int num1;
int denom1;
double frac1;
double frac2;
void setnum1 (int) const;
void setdenom1 (int) const;
void setnum2(int) const;
void setdenom2(int) const;
void setfrac1(double);
void setfrac2(double);
int getnum1 ();
int getnum2 ();
int getdenom1 ();
int getdenom2 ();
double getfrac1();
double getfrac2();
}
getfrac()
{
}
int getfrac (int numerator1, int denominator1)
{
int num1;
int denom1;
num1 = numerator1;
denom1= denominator1;
}
1 2
Error 4 error C4716: 'getfrac' : must return a value c:\documents and settings\allisa\my documents\visual studio 2010\projects\numerator and denominator class\numerator and denominator class\rational.h 40 1 numerator and denominator class
Error 5 error C4716: 'getfrac' : must return a value c:\documents and settings\allisa\my documents\visual studio 2010\projects\numerator and denominator class\numerator and denominator class\rational.h 48 1 numerator and denominator class