C++ Supplementary头文件12345678910111213// MyHeader.h#ifndef CLIONTEST_MY_HEADER_H#define CLIONTEST_MY_HEADER_H#include <iostream>using namespace std;extern int x;void f();#endif aux.cpp12345678910111213141516// aux.cpp#include "MyHeader.h"void f() { cout << "x is " << x << endl;}/* * main.o ------------ * int x; * int main(); * * aux.o -------------- * extern int x; * void f(); ---> uses x */ ###main.cpp 12345678910111213141516// main.cpp#include <iostream>using namespace std;int main() { cout << "this is out" << endl;}/* * stdin +-----+ stdout * ===========->| cpp |===========-> * +-----+ * * I/O: In/Out */