Hi all

I'm taking some courses in C++, I Finished beginner.

So our teacher gave us some questions to think about it ( for hard word )

and now I'm doing some researches and I need your help

Thats the questions as it's :-

--------------

Write a class definition for a class named Fraction. The class contains two variables: numerator and denominator and the following functions:

• A default constructor.

• An overloaded constructor that sets all variables to the values specified by its arguments.

• One get function for each variable that returns the current value.

• One set function for each variable that sets a new value.

• Function equal that compares two fractions and returns true if the two functions are identical; false otherwise.

• Function Add that allows two fractions to be added and returns the result.

• Function Subtract that allows one fraction to be subtracted from the other and returns the result.

• Function infinite that returns true if the denominator is zero; false otherwise.

• Function display that displays the fraction to the screen in the following format (numerator / denominator).

Notes:

• Any infinite fraction should be printed as "oo".

• Embed your class in a test program.

---------------

I hope you found it interesting :P

I'm waiting for your help and thanks to all of you

SonY