|
From: Brian G. <mic...@ad...> - 2004-01-31 15:19:59
|
I'm new to C++ and in my C++ book, I am learning about pointers. I have
a question: can you store an address to some kind of "omnitype" pointer?
I am thinking about doing something like this:
int *point = 0x241xff5f;
cout << *point;
so I can see what is in block 0x241xff5f. However, Dev_C++ won't allow
me to compile this, and I think I know why: 0x241xff5f isn't
neccessarily an int. Is there any way to do something like:
readMem("0x241xff5f");
and it would return the ONE BYTE that is located at 0x241xff5f? Would
the first block of code work if I put an "&" in front of the address?
|