delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/28/15:17:03

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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                *
*************************************************************

- Raw text -


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