vs2010编译没有问题,然而运行出错Run-Time Check Failure #2 - Stack around the variable 'a' was corrupted.

      这种情况多数属于数组访问越界。

      错误多数出在for循环上面。涉及到边界问题出错,轻则数组值取不完全,重则出错,根本无法执行Run-Time Check Failure #2 - Stack around the variable 'a' was corrupted.

 

你可能感兴趣的:(vs2010编译没有问题,然而运行出错Run-Time Check Failure #2 - Stack around the variable 'a' was corrupted.)