Mail Archives: djgpp/1997/12/29/01:52:53
On 28 Dec 97, TRV was found to have commented thusly:
> 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
>
> Daniel
>
I don't use C++ at all, but I know--or at least am pretty sure--of
one thing:
the language includes printf() as a standard library function, and
you can at least control output--including integer and real number
format--to stdout through this function. You might want to become
familiar with your particular implementation's printf(), then also
consider that you may want it to be portable as well...although when
dealing with addresses....
Best regards,
Mitch Halloran
Research (Bio)chemist
Duzen Laboratories Group
Ankara TURKEY
mitch AT duzen DOT com DOT tr
other job title: Sequoia's (dob 12-20-95) daddy
- Raw text -