From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: adresses Date: Sun, 28 Dec 1997 13:27:51 -0800 Organization: Alcyone Systems Lines: 22 Message-ID: <34A6C457.61DA3FF1@alcyone.com> References: <883333771 DOT 84140 AT mn8> NNTP-Posting-Host: newton.alcyone.com 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: > 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 You're going to have to show us some code to demonstrate the problem. Likely an insertion method is being called that you're not expecting. Try explicitly casting to a void *: cout << (void *) &i; -- Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com Alcyone Systems / http://www.alcyone.com/max/ San Jose, California, United States / icbm://+37.20.07/-121.53.38 \ "Life may be / the product of imperfections." / (Marclo Gleiser)