关于C++编程中如何把第二个文件包含在第一个文件中
file1.1#include<iostream>
#include"file1.2"
using namespace std;
int main()
{int num1,num2;
bool divides(int,int);
cin>>num1>>num2;
cout<<divides(num1,num2)<<endl;
return 0;
}
file1.2
#include<iostream>
using namespace std;
bool divides(int n,int m)
{
if(m==0)
cout<<"参数出错"<<endl;
else if(n%m==0)
return true;
else return false;
}
为什么VC6.0说no compile tool is associated with the file extension.