help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with operator%


From: address@hidden
Subject: Re: help with operator%
Date: 19 Oct 2005 23:14:23 -0700
User-agent: G2/0.2

Al-Burak wrote:
[slit]
> --- money.cpp
> jme::Money jme::operator%(jme::Money& lhs, jme::Money& rhs){
>    jme::Money tmp;
>    return tmp = lhs.amount % rhs.amount;

try fmod from <math.h>
double fmod(double x, double y);

     return tmp.amount = fmod(lhs.amount, rhs.amount);

> }
>
> I get an error message, that reads:
> Project   : Money
> Compiler  : GNU GCC Compiler (called directly)
[slit]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]