Mail Archives: djgpp/1997/09/28/04:33:59
joe DOT charles AT mail DOT sprintranet DOT com wrote:
> What I was expecting to see was something like "0x8fc9:fff2" for >example.
What you see is something like "Adress: 0x5ef14" or at least you should.
in 0x8fc9:fff2 the first part is the segment and the second the offset,
right? DJGPP is protected mode 32 bit, that form of addressing is 16 bit
real mode. in DJGPP you have a flat memory, no more segments.
this works fine for me
#include <iostream.h>
void main(void)
{
int temp=9;
cout <<"\n Adress: " <<&temp;
}
(And please, PLEASE, the others, don't tell me "you should use int main
cause the standard says so"! thanx)
--
--> http://www.cam.org/~tudor <--
Go ahead and build another Messiah
We dig another grave...
- Raw text -