when i compile this, it gives me an error for my #include "Rationall.h" statement........i dont know why its giving me an error.
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
class rational {
public:
rational();
~rational();
int setrat( int x, int y);
int getnum();
int getdenom();
private:
int numerator;
int denominator;
}; // end of rational class
rational::rational()
{
numerator = 1;
denominator = 1;
}
int rational::setrat( int x, int y)
{
numerator = x;
denominator = y;
}
int rational::getnum()
{
return (numerator);
}
int rational::getdenom()
{
return (denominator);
}
#include "Rationall.h"
int main()
{
int x, y;
rational rationl;
cout << "Enter in a fraction" << endl;
cout << "Enter in the numerator" << endl;
cin >> x;
cout << "Enter in the denominator" << endl;
cin >> y;
rationl.setrat( x, y );
cout << "The fraction: " << endl;
cout << rationl.getnum() << rationl.getdenom() << endl;
return 0;
}