整数变量显示字母数字 [英] Integer variable display alphanumeric
问题描述
我正在使用Visual Studio 2005专业版.我正在开发窗口应用程序项目.在我的项目中,我声明了integer
变量,但是当我在中断模式下检查代码时,字母数字值显示在变量中(将鼠标光标放在变量名上).
代码:
I am using Visual Studio 2005 professional Edition. I am developing window application project. In my project, I declare integer
variable but while I check the code in break mode alphanumeric values are display in variable (mouse cursor put on variable name).
Code:
for (int intRwCnt = 1; intRwCnt <=20; intRwCnt++)
{
// something write here
}
在"intRwCnt"变量中显示为
In "intRwCnt" variable are display like
1 is 0x00000001<br />
.<br />
.<br />
.<br />
9 is 0x00000009<br />
10 is 0x0000000a<br />
11 is 0x0000000b<br />
.<br />
.<br />
.<br />
15 is 0x0000000f<br />
16 is 0x00000010<br />
.<br />
.<br />
.
我的问题是,如果我想在中断模式下(在循环内)检查"intRwCnt"变量的当前值,则无法找到它,否则就没有问题.
注意:我多次更换了Visual Studio IDE的外观,之后又开始遇到问题.
My problem is, if I want to check "intRwCnt" variable''s current value in break mode (inside for loop), I am unable to find it, otherwise no problem.
Note: I changed skin for visual studio IDE many times, after which I started getting the problem.
推荐答案
您已设置了它以十六进制显示数字.我不知道该怎么做,但是它以16为底数显示数字.显然,您必须将设置更改回去.
You''ve set it to display the numbers in hex. I don''t know how you do that, but it''s showing you numbers, just as base 16. You have to change the setting back, obviously.
尝试以下操作:
http://www.knowdotnet.com/articles/hexdisplay.html [
Try this:
http://www.knowdotnet.com/articles/hexdisplay.html[^]
右键单击变量,然后取消选中十六进制显示"
Right-click on the Variable and uncheck "Hexadecimal Display"
这篇关于整数变量显示字母数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!