Mail Archives: djgpp/1998/09/25/21:24:17
Nick J Chackowsky wrote:
>
> Mighty impressed by this DJGPP stuff, folks! I can't believe it's free;
> I'm letting a LOT of people know about it.
>
> I teach computer science to high school students, and have been
> gradually developing a rational number unit with them, first
> representing fractions as discrete integers, then as a structure, and
> now, as a class. There certainly seem to be a LOT of ways of handling
> the overloading of operators in a situation like this. I've seen:
You might consider posting to comp.lang.c++; this question is a bit
off-topic for questions not specific to DJGPP.
> istream& operator >> (...)
>
> without explaining the & in that context.
I don't use C++ much, but isn't that a reference operator?
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -