包含.h就可以用其对应的函数

//callee.h 被调用者
#pragma once
void display(); //展示函数


//callee.cpp 被调用者
#include "callee.h"
#include <iostream>
using namespace std;

void display()
{
    cout << "hello world!" << endl;
}


//caller.cpp 调用者
#include "callee.h"

int main()
{
    display();
    return 0;
}
新战场:https://blog.csdn.net/Stephen___Qin
原文地址:https://www.cnblogs.com/Stephen-Qin/p/9782068.html