如何在C++中使用一个在目录之外的头文件

学术版

自定义头文件?
by ylxmf2020 @ 2018-06-15 21:38:14


绝对路径,或者相对路径
by SeKong @ 2018-06-15 21:38:23


自定义头文件的话OI不可以用
by ylxmf2020 @ 2018-06-15 21:38:53


这个和头文件有啥关系。。。
by ylxmf2020 @ 2018-06-15 21:39:48


头文件两种用法 ```cpp #include<> ``` ```cpp #include"" ```
by LCuter @ 2018-06-15 21:51:13


编译的时候把头文件的目录用-I指明头文件的目录,然后程序里直接#include "头文件名"
by officeyutong @ 2018-06-15 21:52:32


$#include""$
by Arcturus1350 @ 2018-06-15 21:56:00


@[cn:苏卿念](/space/show?uid=57699) 你的LaTeX格式不对,应该是 ``` $\#include""$ ``` 就像这样:$\#include""$
by 反比例函数 @ 2018-06-17 14:30:40


@[反比例函数](/space/show?uid=59995) 哦,谢谢。我刚开始学$\LATEX$
by Arcturus1350 @ 2018-06-17 16:42:58


|