為什么在dev c++上不用將 test.c的改為static 就運(yùn)行成功了?
//hello.c
#include <stdio.h>
#include "test.c"? ?//引用test.c文件
extern void printLine()? ? ?//這里定義的方法對嗎?
{
? ?printf("**************\n");? ?
}
int main()
{
? ? say();
? ? return 0;
}
//test.c
#include <stdio.h>
void say(){
? ? printLine();
? ? printf("I love imooc\n");
? ? printf("good good study!\n");
? ? printf("day day up!\n");
? ? printLine();
}
2019-11-03
我去我的出毛病了?
2019-11-03
程序是復(fù)制的你的,不能運(yùn)行,
2019-11-03
不行啊,我用dev運(yùn)行不了