3. Write a type bool member function (isInfinite) that tests whether a fraction is infinite. An infinite fraction has a denominator of 0.
분모가 0이면 undefined잖아
분자가 무한이면 무한이고 분모가 무한이면 0아님?
또 분자분모가 int형인데 어떻게 무한이나오냐 분모는 0안되게 해놨는데 전부다 true일텐데
3. Write a type bool member function (isInfinite) that tests whether a fraction is infinite. An infinite fraction has a denominator of 0.
분모가 0이면 undefined잖아
분자가 무한이면 무한이고 분모가 무한이면 0아님?
또 분자분모가 int형인데 어떻게 무한이나오냐 분모는 0안되게 해놨는데 전부다 true일텐데
어차피 int로 나타낼거고 분모가 0인지 아닌지만 확인하는 함수 만들라는거 아님?