我realloc在循环的每次迭代中使用,迭代次数for超过10000次.
realloc
for
这是一个好习惯吗?realloc如果被调用很多次会导致错误吗?
c c++ memory memory-management realloc
c ×1
c++ ×1
memory ×1
memory-management ×1
realloc ×1