为什么一运行就是源文件未编译
main.cpp
#include
#include "SubFunction.h"
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv)
{
int number1,number2;
printf("Please input two numbers:");
scanf("%d%d",&number1,&number2);
int sum=Add(number1,number2);
printf("The summation of two numbers are: %d+%d=%d",number1,number2,sum);
return 0;
}
SubFunction.h
//加函数,求两个整数的和
int Add(int,int);
SubFunction.cpp
//SubFunction 的实现文件
#include "SubFunction.h"
int Add(int num1,int num2)
{
return num1+num2;
}
源文件未编译
编译器显示 recipe for target 'main.o' failed