error C2065: 'malloc' : undeclared identifier

场景:为什么提示“error C2065: 'malloc' : undeclared identifier”,该如何解决

为什么提示“error C2065: 'malloc' : undeclared identifier”
指示的出错语句是:
s->base=(ElemType *)malloc(StackInitSize*sizeof(ElemType));
错误提示:
  --------------------Configuration: chp34 - Win32 Debug--------------------
Compiling...
convert.cpp
d:\数据结构算法\chp34\dy_hanshu.cpp(8) : error C2065: 'malloc' : undeclared identifier
Error executing cl.exe.

convert.obj - 1 error(s), 0 warning(s)
这是为什么呀?
 

------解决方案--------------------

typedef int ElemType; 
放到头文件c1.h里面