#include Directive





#include Directive

  • The preprocessor directive #include tells the compiler to insert another file into your source file. In effect, the #include directive is replaced by the contents of the file indicated.
  • Using an #includedirective to insert another file into your source file is similar to pasting a block of text into a document with your word processor.
  • #include is only one of many preprocessor directives, all of which can be identified by the initial # sign.
  • The type file usually included by #include is called a header file.




Comments