常用函数,如malloc()、calloc()、realloc()、free()、system()、ATOI()、Atol()、RAND()、srand()、exit()等。通过打开stdlib可以查看具体内容。编译器include目录中的H头文件。扩展资料:stdlib头文件中常见函数介绍:1。Calloc函数原型:void Calloc(unsigned n,unsigned size)函数:分配n个数据项的内存连续空间,每...
c语言程序,就需要<stdlib.h> <malloc.h> 而vc只需要Iostream就可以了。<malloc.h>中声明,vc都声明好了,直接用就行。你用的是C++,在iostream中包含了malloc。h