摘要:
一、Malloc/free 1.Malloc的原型:(#include <malloc.h>) Void * malloc(size_t size); // Void * malloc(unsigned int num_bytes); 如果分配失败,则返回NULL,否则返回申请内存的首地址。mall 阅读全文
摘要:
两种格式: 1.简单的宏定义:#define <宏名> <字符串> 2.带参数的宏定义:#define A(x) x 运行时机 C/C++的运行阶段: 预处理主要进行的步骤: 把源程序中的#include扩展为文件正文,即把包含.h文件找到并展开到#include所在处。 预处理器根据#if和#if 阅读全文