Linux多文件编译.h或c文件

1.在home中建立test文件,在test中建立myinclude,src文件。myinclude下建立myhead.cpp,myhead.h文件。src中建立main.cpp文件。如下图所示: 2.源代码如下: main.cpp: #include <iostream> #include <myhead.h> using namespace std; int main() { //fu
相关文章
相关标签/搜索