vs bool true(205)

来源:互联网 发布:网吧游戏桌面软件 编辑:程序博客网 时间:2024/06/06 00:39

在vs调试代码中

发现有个

IsFinal是bool值   发现第一个IsFinal的true 很不对劲 ,代码都是按true和false赋值,为什么会有205这种呢

难不成是char不小心给赋值过去了 不对啊 ASCII也没那么多啊;

可能是未初始化的默认值

205 is hex of 0xCD which is one of the possible fillers for uninitialized data in Visual Studio when working with a debug build.
You need to debug your code and trace back where this uninitialized data comes from.
Nobody here will debug it for you.

205是vs调试时候默认填充值 是16进制的0xcd   

仔细检查确实是初始化代码有问题


我记得上次写过一个博客  http://blog.csdn.net/ink_cherry/article/details/76381086  

那个开辟数组后面加一个0xcc默认的填充检测           这个是0xcd的调试代码 变量的默认填充