From: Thomas Demmer Newsgroups: comp.os.msdos.djgpp Subject: Re: adresses Date: Sun, 28 Dec 1997 20:53:54 +0100 Organization: Lehrstuhl fuer Stroemungsmechanik Lines: 30 Message-ID: <34A6AE52.29D8DE@LSTM.Ruhr-UNI-Bochum.De> References: <883333771 DOT 84140 AT mn8> NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk TRV wrote: > > Help > > I am a C++ newbie, and I got a problem with adresses. > when I use &XXXXX commando to print a value adress on the screen. I got "1" > as answer > Why not a Hex number Because there is a bug in libiostream. The workaround is to use something like cout << hex << int(&XXXX) << endl; (untested) The even better fix is to port a newer version to DJGPP and upload it... -- Ciao Tom ************************************************************* * Thomas Demmer * * Lehrstuhl fuer Stroemungsmechanik * * Ruhr-Uni-Bochum * * Universitaetsstr. 150 * * D-44780 Bochum * * Tel: +49 234 700 6434 * * Fax: +49 234 709 4162 * * http://www.lstm.ruhr-uni-bochum.de/~demmer * *************************************************************