随笔分类 -  Others

摘要:下面的代码: 如果没有文件test.dat时,a的值是多少呢? a = 100,因为没有文件的时候,strStream为空,不会写入变量a中任何值。 阅读全文
posted @ 2015-12-02 00:22 dflyingfish 阅读(253) 评论(0) 推荐(0)
摘要:下面这段代码: 很明显的数组越界问题,VS2005中当设为Debug模式时,会弹出“Stack around the variable 'a' was corrupted”的对话框,设为Release模式时,一切OK;GCC编译(不管是否添加调试选项 g),都OK,不同是怎么发生的呢?原来是V... 阅读全文
posted @ 2015-11-26 01:12 dflyingfish 阅读(510) 评论(0) 推荐(0)