文章目录


效果图

C++,拆分.c.h文件_ios

a.cpp

#include "a.h"

int fun(int x){
return x;
}

a.h

#include <iostream>

using namespace std;
#define row 11
int fun(int x);

main.cpp

#include "a.h"

int main()
{
cout << fun(2) << endl;
cout << row << endl;
return 0;
}