您的位置:首页 > 运维架构

warning C4789: destination of memory copy is too small

2015-05-28 09:32 302 查看
环境: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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐