home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoftware Monthly 19…2 Programming Power Tools
/
MASO9512.ISO
/
cpptutor
/
cpptutor.arj
/
CH10
/
A10222.TXT
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1993-09-24
|
290 b
|
6 lines
A Fraction object cannot have a denominator equal to 0. Whenever
an attempt is made to create such a Fraction, a Fraction with the
value 0/1 is created instead. The implementation of this class
could be changed to throw an exception or to handle a zero
denominator in some other way.