全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Header file, include guard?

又称: header file · include guard

Definition 7.1 University Computer Science — Year 1 · 第 7 章 — Modular Programs, Makefiles and Tests

A header file is a file of declarations (types, function prototypes, constants) meant to be included by other files. An include guard is the pair #ifndef NAME, #define NAME at its start and #endif at its end, which makes a second inclusion of the header in the same file expand to nothing.

在原文中阅读 →