c++学习14 -- 预处理

//防止头文件重复包含

//通用,利用c语言、c++语法的规范
#ifndef AAA
#define AAA


#endif

//取决于编译器,有的编译器有的支持,有的不支持。移植性不太好
#pragma once

 

原文地址:https://www.cnblogs.com/mohu/p/9024708.html