我在Visual C 2010
中看不到任何与alloca.h
等价的东西。如何在Windows上的Visual C
中执行堆栈分配?我怀念函数alloca
。
发布于 2011-07-15 17:15:19
参见_alloca
。Visual C对C标头中的非标准函数使用_前缀。
发布于 2019-10-08 21:04:52
windows中没有alloca.h。你应该
#include <malloc.h>
而不是。alloca函数就在那里
https://stackoverflow.com/questions/6704879
复制相似问题