//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; }
包含.h就可以用其对应的函数
猜你喜欢
转载自www.cnblogs.com/Stephen-Qin/p/9782068.html
今日推荐
周排行