warning C4789: destination of memory copy is too small

来源:互联网 发布:pc3000数据恢复工具 编辑:程序博客网 时间:2024/05/29 06:44

环境:win7 32位,vs2010

#include <iostream>using namespace std;int main(){int arr[3];arr[4] = 0;}

虽然是个waring,但居然是内存越界,必须要改的

参考:https://msdn.microsoft.com/en-us/library/w0c0bww3.aspx

0 0