美文网首页C++ 基础
C Preprocessor 和 #pragma once

C Preprocessor 和 #pragma once

作者: 费曼猫 | 来源:发表于2017-09-14 15:23 被阅读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 代替

相关文章

网友评论

    本文标题:C Preprocessor 和 #pragma once

    本文链接:https://www.haomeiwen.com/subject/qcedsxtx.html