Include a file: Difference between revisions

Line 1,199:
 
/* User/in-project header names are usually enclosed between double-quotes */
#include "myutil.h"</lang>
</lang>
<lang cpp>/* In C++20,you can use the import statement */
import <iostream>;
</lang>
 
Although it is often conventional and idiomatic for a project to use its own headers in the style described on the second line above, it's also possible to tell most compilers using various flags (e. g. GCC and Clang accept <tt>-I</tt>) to treat an arbitrary directory as a system/library include folder, thereby allowing any contained files to be included using the angle bracket syntax.
43

edits