调试过程中将原函数反汇编,找到变量定义的位置,然后就可以找到变量的内存地址。可以调出地址内存的选项卡,然后将地址打进去,验证是否正确。
Let us say you get the memory address of "a"
int a = 10; //0x003ffc0c
int *p; // 0x003ffc18
p = &a; // Now, the p has the memory address of a 0x003ffc0c
cout << p << endl; // print memory address
hope you find this helpful, thank you
那个监视变量的不行吗……