heap corruption detected VS2015 C语言 报错

申请动态内存时,申请的单元数为n,可用下标为0~n-1
但实际使用时超过了该范围,就会报这个错

原文地址:https://www.cnblogs.com/YuQiao0303/p/9608246.html