c++ - Viewing data in memory window -


Why can not I see the variable 'x' in the VS2005 memory window when moving the code using the debugger? >

  int main () {char * c = "string"; // visible four x = 'a'; // visible not visible}   

Both are visible in the memory window for example , Address Window Type & amp; X in the memory window and then you will see the character code of characters in hex.

For example if you have:

  four x = 'x';  

Then in the type of storage window you type and you can see number 0x78 which is 120 in base 10.

  emphasis ('x' == 0x78);  

Characters are just numbers.

Anyway you can type in the clock window (where you can type in any value or expression and it has been evaluated for you) or local window (which shows you all the variables that the current scope Are visible)


Comments