twoSum.c
源文件
int twoSum(int a,int b){
return a + b;
}
主运行文件
#include <stdio.h>
#include "twoSum.c" // C源程序文件
void main(){
int tot;
tot = twoSum(1,2);
printf("%d",tot);
}
twoSum.c
源文件
int twoSum(int a,int b){
return a + b;
}
主运行文件
#include <stdio.h>
#include "twoSum.c" // C源程序文件
void main(){
int tot;
tot = twoSum(1,2);
printf("%d",tot);
}