Preprocessors: #include
Applies To: C++Builder 1 or higher
Category: C++ Language
- The #include preprocessor directive tells the compiler to use another source file. Its general form is:
-
- #include "filename"
-
- where filename is the name of the source file. If you put the header file between < and >, it will be considered as a standard include file. Therefore C++Builder will search this file in its include path. To change the default path or add new ones, go to Project | Options and under the Directories/Conditionals tab, change the Include Path. If you put the header file between " and ", C++Builder will look for it in the current directory.
-
- Tips
- · If you don't know which header file to include, put the text cursor over the function and press F1. The C++Builder help file will give you the syntax, the include file and the description of this function.
C++Builder Developer's Network
Copyright © Yoto Yotov