Sender: nate AT cartsys DOT com Message-ID: <360C4103.D6D02903@cartsys.com> Date: Fri, 25 Sep 1998 18:18:59 -0700 From: Nate Eldredge MIME-Version: 1.0 To: nick AT arcticmail DOT com CC: djgpp AT delorie DOT com Subject: Re: Developing a Rational Unit References: <360AD0D9 DOT 1D22 AT arcticmail DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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