Just some more information on this: the message "Floating Point Exception" does not mean a C++ exception. It actually refers to an error that has been caught by a processor interrupt (divide by zero). Different operating systems do provide ways to intercept these, but this is outside of the language.
Normally with integers you would do the zero checking yourself. It is painful if you have lots of divisions in your code; you might consider writing a division function that would check first and throw an exception. But that is overkill in most instances. Things behave a bit better with floating point arithmetic, because the IEEE standard can handle values like infinity and not-a-number without having to throw errors at all. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus