int operator%( double a, double b ){
int aa = (int) a;
int bb = (int) b;
return aa%bb;
}
gives me an error message "must have an argument of class or enumerated type"!
As you can see, I want a simple program which truncates doubles into their equivalent integers, then performs the modular function on them.