[求助]为什么不能读取内存里面得值
#include <iostream>#include <iomanip>
using namespace std;
int main()
{
int *p;
// 将地址 0x0672b82c付给指针 p
p = reinterpret_cast< int* > (0x400500);
cout<<*p<<endl;
return 0;
}
原代码如上,一运行就出错,换了很多地址都不行,高手帮帮忙,为什么?
2007-05-05 11:05
2007-05-05 11:44

2007-05-05 13:50