Mail Archives: djgpp/1997/12/28/16:47:27
| From: | Erik Max Francis <max AT alcyone DOT com>
|
| 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
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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)
- Raw text -