home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH16 / F161822.FLD < prev    next >
Encoding:
Text File  |  1993-08-13  |  2.0 KB  |  1 lines

  1. ╦class BoundsExcept ╦: public Exception ╦{    ╘// Part 2                                   public:                                                                                               BoundsExcept╦(){ strcpy╦( (char *)sName╦, "Bounds Exception"╦); }                   };                                                                                                 long divide╦( long x╦, long y╦) {                                                            if (y╦==0╦) {                                                                                   throw( MathExcept╦());                                                                       }                                                                                                  return (x╦/y╦);                                                                           }                                                                                                  void read╦() {                                                                                     ╘//...                                                                                            ╦if ( ╘/*...*/ ╦)  ╘          // something went wrong                                             ╦throw( IOExcept╦());                                                                    }