ma.cpp
#include<iostream>
#include "t.hpp"
using namespace std;
int main()
{
node a;
a.f();
return 0;
}
t.hpp
#ifndef __THREAD_POOL_H
#define __THREAD_POOL_H
struct node{
void f();
};
#endif
t.cpp
#include "t.hpp"
#include<iostream>
using namespace std;
void node::f()
{
cout<<"the fucking world"<<endl;
}
命令:g++ ma.cpp t.cpp -o ma