www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/25/21:24:17

Sender: nate AT cartsys DOT com
Message-ID: <360C4103.D6D02903@cartsys.com>
Date: Fri, 25 Sep 1998 18:18:59 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
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>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019