Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Header file, include guard » ?

Aussi appelé : header file · include guard

Definition 7.1 University Computer Science — Year 1 · Chapitre 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.

Lire dans le chapitre →