In article <[EMAIL PROTECTED]>, GB <[EMAIL PROTECTED]> wrote: >Al-Burak wrote: >> protected: float amount; >: >> return tmp = lhs.amount % rhs.amount; >: >> What am I doing wrong? > >You are attempting to use the '%' operator on floats. The operator can >be used only on integral types.
... and enum's. -- Greg Comeau / Celebrating 20 years of Comeauity! Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90. Comeau C/C++ with Dinkumware's Libraries... Have you tried it? _______________________________________________ Help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus
