文章分类 -  c++

摘要:转载自http://blog.csdn.net/hairetz/article/details/4141043 一、预备知识—程序的内存分配 一个由C/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其 操作方式类似于数 阅读全文
posted @ 2017-02-23 16:17 StrayWolf 阅读(74) 评论(0) 推荐(0)
摘要:转载自http://blog.csdn.net/xw13106209/article/details/4962479#comments 一、原型:extern void *malloc(unsigned int num_bytes); 头文件:#include <malloc.h> 或 #inclu 阅读全文
posted @ 2017-02-23 16:06 StrayWolf 阅读(180) 评论(0) 推荐(0)