#ifndef RATIONAL_NUMBER_H
#define RATIONAL_NUMBER_H
class RationalNumber
{
public:
RationalNumber(int = 0, int = 1);//생성자
RationalNumber operator+(const RationalNumber&);//더하기
RationalNumber operator-(const RationalNumber&);//빼기
RationalNumber operator*(const RationalNumber&);//곱하기
RationalNumber operator/(RationalNumber&);//나누기
//relational operators
bool operator>(const RationalNumber&) const;
bool operator<(const RationalNumber&) const;
bool operator>=(const RationalNumber&) const;
bool operator<=(const RationalNumber&) const;
//equality operators
bool operator==(const RationalNumber&) const;
bool operator!=(const RationalNumber&) const;
void printRational() const;
private:
int numerator; //분자
int denominator; //분모
void reduction();//약분함수
};
#endif
이렇게 했는데요
여기서 오류가
error C1070 : #if/#endif 쌍이 짝이 맞지 않습니다
라고 하는데 알려주세요 ㅠㅠㅠ