求大神解答哪里錯(cuò)了
#include <stdio.h>
#include "test.c"? ?//引用test.c文件
extern void printLine()? ? ?//這里定義的方法對嗎?
{
? ?printf("**************\n");? ?
}
int main()
{
? ? say();
? ? return 0;
}
#include <stdio.h>
#include "test.c"? ?//引用test.c文件
extern void printLine()? ? ?//這里定義的方法對嗎?
{
? ?printf("**************\n");? ?
}
int main()
{
? ? say();
? ? return 0;
}
2020-02-10
舉報(bào)
2020-02-19
把代碼換成
#include <stdio.h>
extern void printLine()? ? ?
{
? ?printf("**************\n");? ?
}
void say(){
? ? printLine();
? ? printf("I love imooc\n");
? ? printf("good good study!\n");
? ? printf("day day up!\n");
? ? printLine();
}
int main()
{
? ? say();
? ? return 0;
};
讓后去掉第二個(gè)源文件
2020-02-11
打開“test.c”界面,在void say()前加上static即可。