VS2010如何查变量内存地址
3个回答
2012-07-16
展开全部
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
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
更多追问追答
追问
哥。。。我要看容器的内部变量,cout不出来的
追答
I dont get it, by container you mean a vector, queue, set or sth like that?
Please specify your question, thanks
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
那个监视变量的不行吗……
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询