C++ 基础

C Preprocessor 和 #pragma once

2017-09-14  本文已影响26人  费曼猫
什么是#pragma once?

non-standard but widely supported preprocessor directive. Indicate the current source file to be included only once in a single compilation.

什么是preprocessor directive?

a preprocessor is a program that processes its input data to produce output that is used as input to another program.

Pragma 用于代替#ifndef

#pragma 代替
上一篇下一篇

猜你喜欢

热点阅读